Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / September 2003

Tip: Looking for answers? Try searching our database.

CLR Version under DllHost.exe

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Saar Carmi - 04 Sep 2003 14:05 GMT
Hi

Console application run under the workstation of the CLR. I know how
to host the CLR in unmanaged process and load it as server.

What happens when ServicedComponent runs under COM+ server
application?
Which version of the CLR is loaded in the DllHost.exe process?

If it's the workstation version, how can I make it load the server
version?

Thank you,
Saar

P.S
How does the OS know to load the CLR? Where is written in the assembly
(class library) ?
Tim Kurtzman - 18 Sep 2003 22:57 GMT
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) ?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.