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:       [email protected]                         
                                 |
  |       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: [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 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Ā®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

This e-mail is sent by or on behalf of the named sender identified above.
If:

(a) you do not wish to receive any e-mail marketing material from this
person in the future, please forward the contents of this email to
[EMAIL PROTECTED] with the word "unsubscribe" in the
subject box.

(b) you wish to unsubscribe from all central e-mail marketing lists
used by our business, please forward the contents of this e-mail to
[EMAIL PROTECTED] with the message "unsubscribe
from all central e-mail marketing lists" in the subject box.

If you do not forward the contents of this e-mail with your
unsubscription then it may not be able to be implemented.

The information contained in this e-mail communication may be
confidential. You should only read, disclose, re-transmit, copy,
distribute, act in reliance on or commercialise the information if you
are authorised to do so. If you are not the intended recipient of this
e-mail communication, please immediately notify us by e-mail to
[EMAIL PROTECTED], or reply by e-mail direct to the sender and then
destroy any electronic and paper copy of this message. Any views
expressed in this e-mail communication are those of the individual
sender, except where the sender specifically states them to be the views
of a member of the National Australia Bank Group of companies. Any
advice contained in this e-mail has been prepared without taking into
account your objectives, financial situation or needs. Before acting on
any advice in this e-mail, National Australia Bank Limited recommends
that you consider whether it is appropriate for your circumstances. If
this e-mail contains reference to any financial products, the National
recommends you consider the Product Disclosure Statement (PDS) or other
disclosure document before making any decisions regarding any products.
The National Australia Bank Group of companies does not represent,
warrant or guarantee that the integrity of this communication has been
maintained nor that the communication is free of errors, virus or
interference.

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to