[Mono-list] AppDomain and AppDomainSetup
Torstensson, Patrik
patrik.torstensson@intel.com
Tue, 14 Jan 2003 04:14:08 -0800
Hi,
Appdomain support is not 100% working today. There is a number of issues
involved fixing the problem, right now the code is only executing in one
domain..
Cheers,
Patrik Torstensson
> -----Original Message-----
> From: kojoadams [mailto:kojoadams@hotmail.com]
> Sent: 2003-01-14 11:44
> To: kojoadams; mono-list@ximian.com
> Subject: Re: [Mono-list] AppDomain and AppDomainSetup
>
>
> N.B. This works on .net
> ----- Original Message -----
> From: "kojoadams" <kojoadams@hotmail.com>
> To: <mono-list@ximian.com>
> Sent: Tuesday, January 14, 2003 5:37 AM
> Subject: [Mono-list] AppDomain and AppDomainSetup
>
>
> Hi all,
>
> I just made a test app with this layout
>
> \
> Driver.exe
> domain2
> \
> web.config
> Domain2.exe
> lib
> \
> Class.dll
>
> with Domain2.exe references Class.dll.
>
> the code for Driver.cs is something like:
>
> using System;
> public class Driver{
> public static void Main(){
> AppDomainSetup setup = new AppDomainSetup();
> setup.ApplicationBase =
> AppDomain.CurrentDomain.BaseDirectory +
> "domain";
> setup.ConfigurationFile = "web.config";
> setup.PrivateBinPath = "lib";
>
> AppDomain domain = AppDomain.CreateDomain("a domin", null,
> setup);
> domain.ExecuteAssembly("domain2/Domain2.exe");
>
> }
> }
>
>
> It fails because mono_assembly_load does not look in the
> lib subdirectory
> for Class.dll. Also, it does not change the change the
> ConfigurationFile to
> point to web.config.
>
> kojo
>
> _______________________________________________
> Mono-list maillist - Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>