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:[EMAIL PROTECTED]] > Sent: 2003-01-14 11:44 > To: kojoadams; [EMAIL PROTECTED] > Subject: Re: [Mono-list] AppDomain and AppDomainSetup > > > N.B. This works on .net > ----- Original Message ----- > From: "kojoadams" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > 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 - [EMAIL PROTECTED] > http://lists.ximian.com/mailman/listinfo/mono-list > _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
