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:

No comments posted yet.

Your comment:



 (will not be displayed)


 
 
 
Please add 5 and 4 and type the answer here:
 

Live Comment Preview:

 
«August»
SunMonTueWedThuFriSat
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456