Groups | Blog | Home
all groups > dotnet interop > november 2005 >

dotnet interop : Do I need My COM's to have same CID when Deployed


Ali Elhamdi
11/7/2005 4:28:25 PM
This might be a stupid question but it is not covered in any materials I
have been reviewing.

Basically, I am consuming a COM component using interop in my .ASP.Net
application. When I move code over to production and run the project, I get
the following error:

COM object with CLSID {4A395049-408D-4B74-B810-36009887FE16} is either not
valid or not registered

the class ID of my component in production is different from the one in my
development environment.

Question:

Does .Net COM Interop cares about Class ID. Does he keep track of Class
ID's in the Metadata?



Robert Jordan
11/8/2005 12:00:00 AM
[quoted text, click to view]

It is in the interop assembly.

Ali Elhamdi
11/8/2005 8:39:49 AM
Second Question:

If the question is Yes. And most likely it is a yes. Meaning that the RCW
has to know the CLSID of the unmanged component, then where do I find that
CLSID in my assembly. I've tried ildasm and looked at teh manifest and
could not see anything that looks like a CLSID.

How can I see that information? What tool do I need to use?

Ali



[quoted text, click to view]

Robert Jordan
11/8/2005 11:23:50 AM
Ali,

[quoted text, click to view]

Of course it does.

AddThis Social Bookmark Button