[Mono-bugs] [Bug 72536][Wis] New - Assembly.Load("mscorlib.dll") fails
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 12 Feb 2005 12:14:22 -0500 (EST)
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 fawad@fawad.net.
http://bugzilla.ximian.com/show_bug.cgi?id=72536
--- shadow/72536 2005-02-12 12:14:22.000000000 -0500
+++ shadow/72536.tmp.15763 2005-02-12 12:14:22.000000000 -0500
@@ -0,0 +1,54 @@
+Bug#: 72536
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: fawad@fawad.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Assembly.Load("mscorlib.dll") fails
+
+Description of Problem: Assembly.Load("mscorlib.dll"); fails on mono but
+works on MS .NET.
+
+
+Steps to reproduce the problem:
+1. Compile the code
+class A{
+ public static void Main(){
+ System.Reflection.Assembly.Load("mscorlib.dll");
+ }
+}
+2. Run the application
+
+Actual Results:
+Unhandled Exception: System.IO.FileNotFoundException: mscorlib.dll :
+mscorlib.dll
+in (unmanaged) 0x809f688
+in <0x00004> (wrapper managed-to-native) System.AppDomain:LoadAssembly
+(string,System.Security.Policy.Evidence)
+in <0x0004f> (wrapper remoting-invoke-with-check)
+System.AppDomain:LoadAssembly (string,System.Security.Policy.Evidence)
+in <0x0001b> System.AppDomain:Load (string)
+in <0x00045> (wrapper remoting-invoke-with-check) System.AppDomain:Load
+(string)
+in <0x0001b> System.Reflection.Assembly:Load (string)
+in <0x0000c> A:Main ()
+
+
+Expected Results:
+No exception
+
+How often does this happen?
+Every time
+
+Additional Information:
+On mono, Assembly.Load("mscorlib") works without error.