[Mono-bugs] [Bug 51420][Nor] New - Assembly.Load Method (Byte[]) caused unimplemented exception.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 26 Nov 2003 08:18:30 -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 ztashev@openlinksw.co.uk.
http://bugzilla.ximian.com/show_bug.cgi?id=51420
--- shadow/51420 2003-11-26 08:18:29.000000000 -0500
+++ shadow/51420.tmp.25692 2003-11-26 08:18:29.000000000 -0500
@@ -0,0 +1,62 @@
+Bug#: 51420
+Product: Mono/Runtime
+Version: unspecified
+OS: All
+OS Details: Red Hat 9.0
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: ztashev@openlinksw.co.uk
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Assembly.Load Method (Byte[]) caused unimplemented exception.
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+Assembly.Load Method (Byte[]) caused unimplemented exception.
+
+Steps to reproduce the problem:
+The following code:
+
+File:test_case.cs
+
+using System;
+using System.IO;
+using System.Reflection;
+
+public class TestCase
+{
+ public static void Main ()
+ {
+ Assembly assembly;
+
+ FileInfo fi = new FileInfo ("assem1.exe");
+ FileStream fs = fi.OpenRead ();
+ Byte [] bt = new byte [fi.Length];
+ int br = fs.Read (bt, 0, (int) fi.Length);
+
+ assembly = Assembly.Load(bt);
+
+ Type [] types = assembly.GetTypes();
+ Console.WriteLine ("Done. " + types[0].ToString());
+ }
+}
+
+File: assem1.cs
+
+using System;
+
+public class Test
+{
+ public static void Main ()
+ {
+ Console.WriteLine ("Hello Word.");
+ }
+}