[Mono-bugs] [Bug 69090][Nor] New - Assembly.LoadWithPartialName doesn't work in version 1.0.4 on FC2

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 4 Nov 2004 08:21:20 -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 priewasser@gmx.at.

http://bugzilla.ximian.com/show_bug.cgi?id=69090

--- shadow/69090	2004-11-04 08:21:20.000000000 -0500
+++ shadow/69090.tmp.23212	2004-11-04 08:21:20.000000000 -0500
@@ -0,0 +1,61 @@
+Bug#: 69090
+Product: Mono: Class Libraries
+Version: 1.0
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: priewasser@gmx.at               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Assembly.LoadWithPartialName doesn't work in version 1.0.4 on FC2
+
+Description of Problem:
+On Fedora Core 2 Assembly.LoadWithPartialName doesn't work anymore (in an 
+older 1.0 version it worked)
+
+Steps to reproduce the problem:
+run this code:
+
+using System.Reflection;
+class C{
+  public static void Main(){
+    System.Console.WriteLine(typeof(string).Assembly);
+    Assembly a;
+    a=Assembly.Load("mscorlib, Version=1.0.5000.0, Culture=neutral, 
+PublicKeyToken=b77a5c561934e089"); //works
+    System.Console.WriteLine(a);
+    a=Assembly.LoadWithPartialName("mscorlib"); //doesn't work
+    System.Console.WriteLine(a);
+    a=Assembly.LoadWithPartialName("mscorlib, Version=1.0.5000.0, 
+Culture=neutral, PublicKeyToken=b77a5c561934e089");  //doesn't work
+    System.Console.WriteLine(a);
+  }
+}
+
+Actual Results:
+mscorlib, Version=1.0.5000.0, Culture=neutral, 
+PublicKeyToken=b77a5c561934e089
+mscorlib, Version=1.0.5000.0, Culture=neutral, 
+PublicKeyToken=b77a5c561934e089
+
+
+
+Expected Results:
+mscorlib, Version=1.0.5000.0, Culture=neutral, 
+PublicKeyToken=b77a5c561934e089
+mscorlib, Version=1.0.5000.0, Culture=neutral, 
+PublicKeyToken=b77a5c561934e089
+mscorlib, Version=1.0.5000.0, Culture=neutral, 
+PublicKeyToken=b77a5c561934e089
+mscorlib, Version=1.0.5000.0, Culture=neutral, 
+PublicKeyToken=b77a5c561934e089
+
+Additional Information:
+On Windows XP Assembly.LoadWithPartialName works with version 1.0.4