GetTypeFromCLSID changes in .Net Framework 2.0

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 @ Wednesday, January 11, 2006 8:54 AM
Print

Comments on this entry:

# re: GetTypeFromCLSID changes in .Net Framework 2.0

Left by web development company at 8/13/2009 3:00 AM
Gravatar
Hey, that was interesting,

I think changing the identifier is easer

Thanks

Your comment:



(not displayed)

 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456