[Mono-bugs] [Bug 52231][Wis] New - Failure to locate satellite assemblies

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 16 Dec 2003 07:56:58 -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 bruno@clisp.org.

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

--- shadow/52231	2003-12-16 07:56:58.000000000 -0500
+++ shadow/52231.tmp.1964	2003-12-16 07:56:58.000000000 -0500
@@ -0,0 +1,84 @@
+Bug#: 52231
+Product: Mono/Class Libraries
+Version: unspecified
+OS: SUSE 9.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bruno@clisp.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Failure to locate satellite assemblies
+
+Description of Problem: 
+Satellite assemblies are not found. 
+ 
+ 
+Steps to reproduce the problem: 
+$ mkdir de 
+$ touch de.po 
+$ monoresgen de.po hello.de.resources 
+$ mcs -target:library -out:de/hello.dll -resource:hello.de.resources dummy.cs 
+$ mcs hello.cs 
+$ mono hello.exe 
+ 
+ 
+Actual Results: 
+$ mono hello.exe 
+Unhandled Exception: System.IO.FileNotFoundException: File 
+'hello.resources' not found. 
+in (unmanaged) /opt/gnome2/lib/libmono.so.0(mono_raise_exception+0x20) 
+[0x40098639] 
+in (unmanaged) /opt/gnome2/lib/libmono.so.0 [0x400ba9bf] 
+in <0x0006c> (wrapper remoting-invoke-with-check) 
+System.AppDomain:LoadAssembly 
+(System.Reflection.AssemblyName,System.Security.Policy.Evidence) 
+in <0x00044> System.AppDomain:Load 
+(System.Reflection.AssemblyName,System.Security.Policy.Evidence) 
+in <0x0006b> (wrapper remoting-invoke-with-check) 
+System.AppDomain:Load 
+(System.Reflection.AssemblyName,System.Security.Policy.Evidence) 
+in <0x0003d> System.AppDomain:Load (System.Reflection.AssemblyName) 
+in <0x00058> (wrapper remoting-invoke-with-check) 
+System.AppDomain:Load (System.Reflection.AssemblyName) 
+in <0x0001c> System.Reflection.Assembly:Load 
+(System.Reflection.AssemblyName) 
+in <0x000df> System.Reflection.Assembly:GetSatelliteAssembly 
+(System.Globalization.CultureInfo,System.Version) 
+in <0x00019> System.Reflection.Assembly:GetSatelliteAssembly 
+(System.Globalization.CultureInfo) 
+in <0x0003f> .Hello:Main () 
+ 
+$ strace -f mono hello.exe 2>&1 | grep hello 
+... 
+[pid  2669] open("/home/bruno/c#/monobug12/hello.resources.dll", 
+O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) 
+[pid  2669] open("/home/bruno/c#/monobug12/hello.resources.exe", 
+O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) 
+[pid  2669] open("/opt/gnome2/lib/hello.resources.dll", 
+O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) 
+Unhandled Exception: System.IO.FileNotFoundException: File 
+'hello.resources' not found. 
+ 
+It should look at de/hello.dll, not hello.resources.dll in the current directory. 
+ 
+ 
+Expected Results: 
+$ mono hello.exe 
+hello de 
+ 
+ 
+How often does this happen?  
+Reproducible. 
+ 
+ 
+Additional Information: 
+The locations where satellite assemblies are expected - in the absence of 
+configuration files - is described in 
+http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconstep4locatingassemblythroughcodebasesorprobing.asp