Geeks With Blogs

Michael Freidgeim's Blog MS .Net Development

My application, written for .Net 1.1, used GuidAttribute of Type to uniquely identify classes and then load different classes, based on specified GUID passing to GetTypeFromCLSID.  The classes were not COM classes.

The functionality is broken in .NET 2.0 as documented here.

Now GetTypeFromCLSID returns valid type only if the class is COM object (Type.IsComObject() returns true) and is registered as COM class.

Managed class with matched GuidAttribute will not be returned by GetTypeFromCLSID(guid) .

I have two options- 1. to change identifier to be full class name or make class COM objects and register them in Windows Registry.



Posted on Wednesday, January 11, 2006 8:54 AM .Net Framework | Back to top

Comments on this post: GetTypeFromCLSID changes in .Net Framework 2.0

# re: GetTypeFromCLSID changes in .Net Framework 2.0
Requesting Gravatar...
Hey, that was interesting,

I think changing the identifier is easer

Left by web development company on Aug 13, 2009 3:00 AM

Your comment:
 (will show your gravatar)

Copyright © Michael Freidgeim | Powered by: | Join free