[Mono-bugs] [Bug 79522][Nor] New - [PATC] AppDomain.Load does not fallback to CodeBase for loading assembly
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Sep 28 17:12:14 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 gert.driesen at pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=79522
--- shadow/79522 2006-09-28 17:12:14.000000000 -0400
+++ shadow/79522.tmp.24608 2006-09-28 17:12:14.000000000 -0400
@@ -0,0 +1,61 @@
+Bug#: 79522
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: gert.driesen at pandora.be
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [PATC] AppDomain.Load does not fallback to CodeBase for loading assembly
+
+Mono's AppDomain.Load (AssemblyName) does not fallback to
+AssemblyName.CodeBase for loading an assembly.
+
+From the .NET Framework SDK 2.0 docs:
+
+"If both the AssemblyName.Name property and the AssemblyName.CodeBase
+property are set, the first attempt to load the assembly uses the display
+name (including version, culture, and so on, as returned by the
+Assembly.FullName property). If the file is not found, the CodeBase
+property is used to search for the assembly. If the assembly is found
+using CodeBase, the display name is matched against the assembly. If the
+match fails, a FileLoadException is thrown."
+
+To reproduce:
+
+1. Extract the attached (gzipped) tar.
+2. Run make.
+
+Expected result:
+
+No output on console.
+
+Actual result:
+
+Unhandled Exception: System.IO.FileNotFoundException: File or assembly
+name testb, Version=0.0.0.0, Culture=neutral, or one of its dependencies,
+was not found.
+File name: "testb, Version=0.0.0.0, Culture=neutral"
+ at <0x00000> <unknown method>
+ at (wrapper managed-to-native) System.AppDomain:LoadAssembly
+(string,System.Security.Policy.Evidence,bool)
+ at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef,
+System.Security.Policy.Evidence assemblySecurity) [0x00000]
+ at (wrapper remoting-invoke-with-check) System.AppDomain:Load
+(System.Reflection.AssemblyName,System.Security.Policy.Evidence)
+ at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef)
+[0x00000]
+ at (wrapper remoting-invoke-with-check) System.AppDomain:Load
+(System.Reflection.AssemblyName)
+ at System.Reflection.Assembly.Load (System.Reflection.AssemblyName
+assemblyRef) [0x00000]
+ at Test.Main () [0x00000]
+make: *** [run] Error 1
More information about the mono-bugs
mailing list