Friday, September 07, 2007

COM component not registering properly

Related to my previous post, I was also having trouble getting the new .net COM object to register properly, even when I had removed all references to earlier versions. I had used:

>RegAsm assemblyName

but was unable to invoke the component in a web page. When I tried to examine it in OleView it initially seemed to be fine. However, when I tried to expand the class name node (under .Net category) I got the following error:

CoGetClassObject failed.
The system cannot find the file specified.

severity: SEVERITY_ERROR, facility: FACILITY_WIN32 ($80070002)

Registering it with:

>RegAsm assemblyName /codebase

fixed the issue

No comments: