[Mono-bugs] [Bug 79426][Nor] Changed - [PATCH] Assembly loader failures result in FileNotFoundException with message equal to filename

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Sep 17 11:28:24 EDT 2006


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 vargaz at gmail.com.

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

--- shadow/79426	2006-09-17 11:06:40.000000000 -0400
+++ shadow/79426.tmp.29386	2006-09-17 11:28:24.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 79426
 Product: Mono: Runtime
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: misc
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: gert.driesen at pandora.be               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -89,6 +89,21 @@
 FileNotFoundException).
 
 ------- Additional Comments From gert.driesen at pandora.be  2006-09-17 11:06 -------
 Created an attachment (id=17702)
 Fix
 
+
+------- Additional Comments From vargaz at gmail.com  2006-09-17 11:28 -------
+I think the proper fix is to fix FileNotFoundException to set the
+message in the ctor, i.e.
+
+	  try {
+		  throw new FileNotFoundException (null, "foo.dll");
+	  }
+	  catch (Exception ex) {
+		  Console.WriteLine (ex.Message);
+	  }
+
+prints 'File or assembly name foo.dll, or one of its dependencies
+was not found' on MS.NET, but not on mono.
+


More information about the mono-bugs mailing list