PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Beating a dead horse: MissingManifestResourceException in CF 2.0
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Beating a dead horse: MissingManifestResourceException in CF 2.0
![]() |
Beating a dead horse: MissingManifestResourceException in CF 2.0 |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hello
I'm trying to read .resource files in a Windows CE 5.0 application using ..Net Compact Framework 2.0, however it seems no matter what I do I keep getting a MissingManifestResourceException. Could someone please advice? My code looks like this: //----------------------- CultureInfo ci = new CultureInfo("en-GB"); ResourceManager rm = new ResourceManager("MainAssemblyName.TextStrings", this.GetType().Assembly); textBox1.Text = rm.GetString("LengthCtrl", ci); //------------------------ This approach is also the same as the one described in the MSDN article "Build World-Ready Device Application" 2004 by Christian Forsberg (http://msdn.microsoft.com/library/d...ompactframe.asp). When executing the Win CE application on Windows XP this works just fine, but when running it on the CE Emulator in Visual Studio 2005 or a CE device with CF 2.0 it consequently throws the MissingManifestResourceException. On http://support.microsoft.com/kb/839861/ it is reported that this kind of behaviour can happen if the .resource file generated by 'resgen.exe' does not start with the Namespace name. I've done so, but this did not help. The .resource file is located in a folder named 'en-GB' and a satellite assembly has been compiled using the assembly linker ('al.exe'): >al /t:lib /embed:en-GB\MainAssemblyName.TextStrings.en-GB.resources /c:en-GB /out:en-GB\MainAssemblyName.resources.dll A corresponding .resource file is also located in the root directory of the project. |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

