[Mono-bugs] [Bug 68519][Nor] New - Mono localized resource embedding failure

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 18 Oct 2004 13:26:22 -0400 (EDT)


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 naresh@ximian.com.

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

--- shadow/68519	2004-10-18 13:26:22.000000000 -0400
+++ shadow/68519.tmp.29713	2004-10-18 13:26:22.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 68519
+Product: Mono: Runtime
+Version: unspecified
+OS: SUSE 9.1
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: naresh@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Mono localized resource embedding failure
+
+>>> Anand Sinha 10/16/04 1:00 AM >>>
+Naresh,
+
+Can you help me get an answer to this question?
+
+There are 2 ways in Mono that a localized resource can be used. 
+   * By creating Satellite Assemblies (*.resource) files and supplying
+these to your program.
+   * By embedding the resource in the DLL (or EXE)
+
+Somehow, the 2nd approach does not seem to be working. There are no errors
+generated when we try to compile the code using "/resource" option to mcs.
+However, when we do the following:
+    ResourceManager res = new ResourceManager("NameOfResource"
+,System.Reflection.Assembly.GetExecutingAssembly());
+    res.GetString("Key",Thread.CurrentThread.CurrentUICulture);
+
+It throws the following exception:
+  System.Resources.MissingManifestResourceException: Could not find any
+resource appropiate for the specified culture or its parents (assembly:AAAA)
+
+Just wanted to know if anyone has faced this issue. Or is there something
+that I am overlooking / doing wrongly? 
+
+Please let us know.
+
+Thanks & Regards
+Anand Sinha
+=