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

Tip: Looking for answers? Try searching our database.

Trace .Net assembly from CLSID

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sorpor - 13 Oct 2004 01:42 GMT
I have a .Net class which is registered with COM with a GUID and this class
is registered in a component category. In another .net app, I want to loop
through all the registered CLSIDs in the component category but I can't
figure out how to create a _pure_ .Net object from the CLSID. I can use
System.Type.GetTypeFromCLSID but it always returns System.__COM type. I was
wondering if it is possible to check if the type is .Net based and to trace
back to the assembly where this .Net type is defined.

Thanks for any help!
-sorpor
Sunny - 14 Oct 2004 00:54 GMT
Hi,

> I have a .Net class which is registered with COM with a GUID and this class
> is registered in a component category. In another .net app, I want to loop
[quoted text clipped - 6 lines]
> Thanks for any help!
> -sorpor

In registry under HKCR/CLSID get the GUID of the class. Then in
HKCR/CLSID/{your guid}/InprocServer32/Assembly is the the full name of
the assembly. And if you have registered it with /codebase, in CodeBase
key will be the full path to it.

Sunny
sorpor - 16 Oct 2004 00:01 GMT
Duh, I was wrong on System.Type.GetTypeFromCLSID. It will return a .Net type
if it is a CLISD pointing to a .Net component, not always System.__COM type
as I mentioned in the first post. I can easily retrieve the assembly from
System.Type then.

> Hi,
>
[quoted text clipped - 15 lines]
>
> Sunny

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.