PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Beating a dead horse: MissingManifestResourceException in CF 2.0

Reply

Beating a dead horse: MissingManifestResourceException in CF 2.0

 
Thread Tools Rate Thread
Old 12-09-2006, 03:21 PM   #1
=?Utf-8?B?R1Q=?=
Guest
 
Posts: n/a
Default Beating a dead horse: MissingManifestResourceException in CF 2.0


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.

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off