This post originated from an RSS feed registered with .NET Buzz
by Scott Hanselman.
Original Post: Version Independent ProgIDs in the .NET Framework and C#
Feed Title: Scott Hanselman's ComputerZen.com
Feed URL: http://radio-weblogs.com/0106747/rss.xml
Feed Description: Scott Hanselman's ComputerZen.com is a .NET/WebServices/XML Weblog. I offer details of obscurities (internals of ASP.NET, WebServices, XML, etc) and best practices from real world scenarios.
Generating a Version Independent ProgID in a C# Component that is being exposed as
COM is apparently tantamount to Voodoo. Nothing has been written about it either
in Google Groups or in Google proper. Sam
Gentile in his wisdom confirmed to me that there is no [VersionIndependentProgID]
attribute or the like.
So, sounds like I'll need it manually in my own "DllRegisterServer" functions:
[ComRegisterFunctionAttribute]
public static void myDllRegisterServer(string registrationLogic)
{
// perform my logic
Trace.WriteLine( "Registration
is occuring ..." );
}
[ComUnregisterFunctionAttribute]
public static void myDllUnregisterServer(string registrationLogic)
{
// perform my logic
Trace.WriteLine( "Dis-Un-registration
is occuring ..." );
}