[Mono-bugs] [Bug 76984][Nor] New - Problem loading resources from a
different directory
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Dec 13 13:07:23 EST 2005
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 sebastien.robitaille at croesus.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76984
--- shadow/76984 2005-12-13 13:07:22.000000000 -0500
+++ shadow/76984.tmp.1631 2005-12-13 13:07:22.000000000 -0500
@@ -0,0 +1,74 @@
+Bug#: 76984
+Product: Mono: Class Libraries
+Version: 1.1
+OS: Red Hat 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: sebastien.robitaille at croesus.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Problem loading resources from a different directory
+
+Description of Problem:
+
+We have a case where some assemlies loaded dynamically are located in a
+different directory than the current executable. These assemblies all
+have "Satellite assemblies" containing their localized strings.
+
+The problem we have is that the resource manager used to retrieve the
+localized strings for these assemblies does not find them.
+
+Ex:
+Suppose MyApp.exe is located in ~/soft/MyApp
+and that A.dll and B.dll are located in ~/soft/lib and both of these
+assemlies have satellite assemblies for "en" and "fr" cultures.
+
+The resulting directory structure is as follow:
+soft/MyApp/MyApp.exe
+soft/MyApp/en/MyApp.resources.dll
+soft/MyApp/fr/MyApp.resources.dll
+soft/lib/A.dll
+soft/lib/B.dll
+soft/lib/en/A.resources.dll
+soft/lib/en/B.resources.dll
+soft/lib/fr/A.resources.dll
+soft/lib/fr/B.resources.dll
+
+The problem: The french and english strings are not found for A and B
+when using mono but are found when using MS.NET.
+
+Here are some particularities of our application that may help to
+reproduce the problem:
+
+- MyApp.exe does not reference the A and B assemblies directly. It loads
+them dynamically using reflection (using Assembly.LoadFrom and
+Activator.CreateInstance)
+- The ResourceManagers used to retrieve the localized strings are created
+from inside the A and B assemblies, but are used in the MyApp.exe
+executable.
+
+Actual Results:
+Localized strings are not found.
+
+Expected Results:
+Localized strings found.
+
+How often does this happen?
+Always.
+
+Additional Information:
+
+RedHat9
+Mono JIT compiler version 1.1.9, (C) 2002-2005 Novell, Inc and
+Contributors. www.mono-project.com
+ TLS: __thread
+ GC: Included Boehm (with typed GC)
+ SIGSEGV : normal
+ Globalization: normal
More information about the mono-bugs
mailing list