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 / July 2004

Tip: Looking for answers? Try searching our database.

COM Interop Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bchandley - 06 Jul 2004 01:35 GMT
We have a COM object (vb) that is used in several Clasic ASP and ASP.NET applications. However, the ASP.net applications can no longer locate the COM object when it is re-compiled and re-registered (with a new version number). The Error message is "ClassFactory cannot supply requested class".

I understand that this error is caused because the .Interop.dll has the object's GUID embeded into it and when the re-registration occurs, the GUID is diffrent. What I do not understand is what I can do about it.

I would like to be able to upgrde the COM Object without having to update every .NET Application that uses it.  

BChan
Paul Clement - 06 Jul 2004 19:17 GMT
¤ We have a COM object (vb) that is used in several Clasic ASP and ASP.NET applications. However, the ASP.net applications can no longer locate the COM object when it is re-compiled and re-registered (with a new version number). The Error message is "ClassFactory cannot supply requested class".
¤
¤ I understand that this error is caused because the .Interop.dll has the object's GUID embeded into it and when the re-registration occurs, the GUID is diffrent. What I do not understand is what I can do about it.
¤
¤ I would like to be able to upgrde the COM Object without having to update every .NET Application that uses it.  
¤

Make certain to compile your COM component using binary compatibility
(Project...Properties...Component tab). This will retain the existing CLSID.

However, if you break binary compatibility by removing interface members, changing arguments, etc.
then you will have to recreate the interop library.

Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)

Rate this thread:







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.