[Mono-bugs] [Bug 55277][Wis] Changed - System.Reflection.LoadFrom does not support URIs

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 16 Jan 2005 12:12:48 -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 mei@work.email.ne.jp.

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

--- shadow/55277	2004-05-13 17:07:16.000000000 -0400
+++ shadow/55277.tmp.30583	2005-01-16 12:12:48.000000000 -0500
@@ -30,6 +30,54 @@
 from a URI works for me. Thanks!
 
 ------- Additional Comments From crichton@gimp.org  2004-05-10 14:29 -------
 No real sample code to speak of, but the following doc may be helpful:
 
 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemreflectionassemblyclassloadfromtopic.asp
+
+------- Additional Comments From mei@work.email.ne.jp  2005-01-16 12:12 -------
+Steps to reproduce the problem:
+1. compile foo.cs to foo.dll (include only class Y)
+2. compile bar.cs to bar.exe
+3. run xsp (port:8080)
+4. run bar.exe 
+
+Additional Information:
+
+Environment: cygwin on WinXP SP2.
+
+
+// foo.cs : only class Y.
+public class Y 
+{
+}
+
+// bar.cs compile to bar.exe
+using System;
+using System.Reflection;
+
+class X 
+{
+	public static void Main ()
+	{
+		Assembly asm = Assembly.LoadFrom
+("http://localhost:8080/foo.dll");
+		foreach (Type t in asm.GetTypes ())
+				Console.WriteLine (t.Name);
+	}
+}
+
+
+/* MS.NET
+ Y
+ */
+
+/* Mono
+Unhandled Exception: System.IO.FileNotFoundException: 
+File 'http://localhost:8080/foo.dll' not found.
+in <0xfeec08ff> (wrapper managed-to-native) 
+System.Reflection.Assembly:LoadFrom (string)
+in <0x00004> (wrapper managed-to-native) 
+System.Reflection.Assembly:LoadFrom (string)
+in <0x0001f> X:Main ()
+ */
+