[Mono-bugs] [Bug 76757][Nor] Changed - new AppDomains inherit current loaded assemblies

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Nov 21 17:59:20 EST 2005

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by kornelpal at hotmail.com.


--- shadow/76757	2005-11-21 17:37:25.000000000 -0500
+++ shadow/76757.tmp.30242	2005-11-21 17:59:19.000000000 -0500
@@ -199,6 +199,18 @@
 need to have xsp.exe/Mono.Security.dll/Mono.WebServer.dll in the bin/
 directory, otherwise, the newly created domain, which has
 PrivateBinPath set, won't know how to find those assemblies.
 When you run xsp in mono, this is not required, because the new domain
 has the same assemblies loaded as the first one.
+------- Additional Comments From kornelpal at hotmail.com  2005-11-21 17:59 -------
+Yes, and you should not assume Mono runtime behavior as it is wrong.
+You should either place all assemblies to the bin directory or use 
+AppDomain.AssemblyResolve event to load assembly from a custom path 
+or stroage like resources.
+Alternatively you can use AppDomainSetup.PrivateBinPath, 
+AppDomainSetup.PrivateBinPathProbe, AppDomain.AppendPrivatePath, 
+<codeBase> element, <probing> element to specify additional search 
+patch for assemblies.

More information about the mono-bugs mailing list