Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / November 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ali Elhamdi - 07 Nov 2005 22:28 GMT
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 - 08 Nov 2005 10:23 GMT
Ali,

> 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
[quoted text clipped - 10 lines]
> Does .Net COM Interop cares about Class ID.  Does he keep track of Class
> ID's in the Metadata?

Of course it does.

Robert
Ali Elhamdi - 08 Nov 2005 14:39 GMT
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

> This might be a stupid question but it is not covered in any materials I
> have been reviewing.
[quoted text clipped - 13 lines]
> Does .Net COM Interop cares about Class ID.  Does he keep track of Class
> ID's in the Metadata?
Robert Jordan - 08 Nov 2005 14:51 GMT
> 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?

It is in the interop assembly.

Rob

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.