[Mono-bugs] [Bug 74191][Wis] New - Better warning when an assembly can't be loaded
Tue, 29 Mar 2005 12:27:25 -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 email@example.com.
--- shadow/74191 2005-03-29 12:27:25.000000000 -0500
+++ shadow/74191.tmp.7956 2005-03-29 12:27:25.000000000 -0500
@@ -0,0 +1,66 @@
+Product: Mono: Runtime
+Summary: Better warning when an assembly can't be loaded
+Date: Tue, 22 Mar 2005 09:46:06 -0500
+From: Joshua Tauberer <firstname.lastname@example.org>
+To: "email@example.com" <firstname.lastname@example.org>
+Subject: Better warning when an assembly can't be loaded
+Attached is a patch to slightly improve what happens when a referenced
+assembly at run time can't be found anywhere.
+The warnings go from ('a' and 'b' are assemblies, 'A' is a class in 'a'):
+** (b.exe:21606): WARNING **: Could not find assembly a, references from
+ Major/Minor: 0,0
+ Build: 0,0
+System error: No such file or directory
+** (b.exe:21606): WARNING **: Could not load class from .A (token
+0x01000001) in /mnt/part2/dev/b.exe
+mono: symbol lookup error: mono: undefined symbol: g_assert_warning
+... to ...
+** (b.exe:22598): WARNING **: The following assembly referenced from
+/mnt/part2/dev/b.exe could not be loaded:
+ Assembly: a (assemblyref_index=0)
+ Version: 0.0.0.0
+ Public Key: (none)
+The assembly was not found in the Global Assembly Cache, a path listed
+in the MONO_PATH environment variable, or in the location of the
+executing assembly (/mnt/part2/dev/).
+** (b.exe:22598): WARNING **: The class A could not be loaded, used in
+/mnt/part2/dev/b.exe (token 0x01000001)
+It would be nice to not have Mono die right after that, and instead
+throw a managed exception, but it looks like that involves a lot of work
+to carry the problem back to a point where an exception can be thrown.
+Let me know if and when it's ok to commit.
+- Joshua Tauberer
+** Nothing Unreal Exists **