[Mono-bugs] [Bug 73346][Blo] New - AppDomain.Load error

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 4 Mar 2005 10:34:28 -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 martin.tapp@cae.com.


--- shadow/73346	2005-03-04 10:34:28.000000000 -0500
+++ shadow/73346.tmp.10961	2005-03-04 10:34:28.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 73346
+Product: Mono: Class Libraries
+Version: 1.1
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Priority: Blocker
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: martin.tapp@cae.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: AppDomain.Load error
+Description of Problem:
+AppDomain.Load with AssemblyName does not load dll because of error in 
+Steps to reproduce the problem:
+Using Reflection:
+Assembly wAssembly = AppDomain.CurrentDomain.Load
+(AssemblyName.GetAssemblyName("/Some/My Path(1)/MyAssembly.dll"));
+Actual Results:
+Throws exception since it does not find the assembly
+Expected Results:
+Loads the assembly
+How often does this happen? 
+Additional Information:
+The problems:
+- AppDomain.Load looks at the AssemblyName.Name it is null or Length==0 to 
+load with CodeBase --> Wrong since Name is not null here
+- If force AssemblyName.Name to be null, AppDomain.Load throws since Code 
+it does not find the file (AssemblyName.CodeBase is file:///Some/My%20Path
+(1)/MyAssembly.dll") --> not found, %20 seems troublesome and parenthesis