Hi, I have tried using the application.config and application.manifest files and setting the Root Directory of the COM+ application, but this is not affecting which version of the .NET framework is being loaded. Note, I know the .config and .manifest files are being accessed as I ran SysInternals.com FileMon utility and it shows they are used. However, it seems that the <startup> tag in the .config file is not having any affect. It works fine if I put it into the DLLHOST.exe.config, but this will then be used for all COM+ apps.
Any ideas why this isn't working ? By they way, what is the manifest file used for ? Regards, Charles. -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Wills Sent: 19 July 2006 00:18 To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Loading specific .NET framework Charles, http://dotnet.org.za/armand/archive/2004/05/30/1917.aspx Have a play with the above technique and see if it works. I am not sure it will, but its worth a try. Seeya Matthew Wills @ MLC Senior Analyst Programmer |---------+----------------------------------> | | Charles Gamble | | | <[EMAIL PROTECTED]| | | RITY.CO.UK> | | | | |---------+----------------------------------> >--------------------------------------------------------------------------- -----------------------------------| | | | To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM | | cc: | | 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: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM 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 email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ =================================== 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Ā® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com