On Win2003, Win2k SP4 and WinXP SP2 you'll get the version of the runtime
that the object is registered to use.
The registration appears as follows (this is automatically generated by
regasm, but if you care about the nitty-gritty details).
Under HKLM\clsid you'll have a registry hive that looks kind of like this
xxxxxx-xxxx-xxxx--xxxxx
|_ InprocServer32
|_ 1.0.3300 RuntimeVersion=v1.0.3705
|_ 1.0.5000 RuntimeVersion=v1.1.4322
We'll look underneath the InprocServer32 key, look for the greatest
assembly version number, and then try and use the version of the runtime
under its RuntimeVersion value.
If we fail to load that version of the runtime, or if you're on a different
platform than those listed above, we'll load the latest version of the
runtime.
Unfortunately, in this scenario there is no way to make it load the server
build.
Tim
--------------------
| From: saar@bigfoot.com (Saar Carmi)
| Newsgroups: microsoft.public.dotnet.framework.clr
[quoted text clipped - 7 lines]
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google.com 1062680727 12190 127.0.0.1 (4 Sep 2003
13:05:27 GMT)
| X-Complaints-To: groups-abuse@google.com
| NNTP-Posting-Date: 4 Sep 2003 13:05:27 GMT
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-
xit-05!sn-xit-01!sn-xit-09!supernews.com!postnews1.google.com!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.clr:7884
| X-Tomcat-NG: microsoft.public.dotnet.framework.clr
[quoted text clipped - 17 lines]
| How does the OS know to load the CLR? Where is written in the assembly
| (class library) ?