Charles, On a side note. I'm interested in doing what you are doing, that is hosting a .NET assembly in COM+. I haven't started to do the research yet to find out how to do this, but any suggestions, or informational web sites that you have found would be most helpful.
Thanks, Nick -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Charles Gamble Sent: Tuesday, July 18, 2006 9:32 AM To: [email protected] Subject: Re: [ADVANCED-DOTNET] Loading specific .NET framework Thanks for the help so far on this. Are there any web links explaining how the version of the framework to use is determined when a process first loads a .NET DLL? The process I am talking about specifically is DLLHOST.EXE, as we are hosting .NET DLLs in COM+. We would like to control the version of the framework to use in a mixed environment (.NET 1.1 and 2.0 installed), however if we do this via DLLHOST.exe.config file this will affect all COM+ applications on the machine. Any other way of doing this in code or declaratively ? Thanks, Charles. -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Bryan Porter Sent: 18 July 2006 17:10 To: [email protected] Subject: Re: [ADVANCED-DOTNET] Loading specific .NET framework Salutations Charles, As I recall, a process can only have one instance of the CLR loaded at any given time. If you are self-hosting the CLR (i.e. an unmanaged C++ application using the CLR COM objects) I suppose you could dynamically change the CLR (with the result of unloading any AppDomains currently loaded when you switch); however, it is trivial to specify which framework is required in the App.config file; see MSDN for more details on this. Regards, Bryan Porter On Jul 18, 2006, at 9:17 AM, Charles Gamble wrote: > Is there any other way to load a different version of the .NET > framework in a process other than using .NET configuration files ? Can > the version loaded be changed while a process is running ? > > How exactly is the version of the framework to use determined ? > > > > Any help is appreciated, > > Charles. > > > > > > ______________________________________________________________________ > __ > This e-mail has been scanned for all viruses by MessageLabs. > ______________________________________________________________________ > __ > > =================================== > This list is hosted by DevelopMentor(r) http://www.develop.com > > View archives and manage your subscription(s) at http:// > discuss.develop.com =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com ________________________________________________________________________ This e-mail has been scanned for all viruses by MessageLabs. ________________________________________________________________________ ________________________________________________________________________ This e-mail has been scanned for all viruses by MessageLabs. ________________________________________________________________________ =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
