Manifest / resource file conflict?

  • Thread starter Thread starter Jon Davis
  • Start date Start date
J

Jon Davis

http://support.microsoft.com/default.aspx?scid=kb;en-us;329014

Adding the code at this URL results in an error message:

An unhandled exception of type
'System.Resource.MissingManifestResourceException' occurred in mscorlib.dll

Additional information: Could not find any resources appropriate for the
specified culture 9or the neutral culture) in the given assembly. Make sure
"WebBrowser.resources" was correctly embedded or linked into assembly
"[ProductName]".
baseName: WebBrowser locationInfo:
[product namespace].WebBrowser resource file name:
WebBrowser.Resources assembly: [ProductName], Version=2.0.2.27499,
Culture=neutral, PublicKeyToken=null

Note that "WebBrowser" above refers to my UserControl which contains an IE
web browser control, and "[ProductName]" refers to the EXE name (I changed
it here).

I don't know where this error comes from, but if it helps to clarify I do
have a standard manifest file in place for the EXE in which this control
(containing the IE WebBrowser control) is compiled, for the Windows XP look
and feel.

Any ideas?

Jon
 
It looks like the code wants to load a satelite resource for localized
culture and it doesn't find the one it excepts to find.

( From the helpfile - "The exception thrown if the main assembly does not
contain the resources for the neutral culture, and they are required
because of a missing appropriate satellite assembly." )

Are you running a non english system?, non english internet explorer? non
english framework?

Then again
 
Are you running a non english system?, non english internet explorer? non
english framework?

No. All english.

I'm lost.

Jon


It looks like the code wants to load a satelite resource for localized
culture and it doesn't find the one it excepts to find.

( From the helpfile - "The exception thrown if the main assembly does not
contain the resources for the neutral culture, and they are required
because of a missing appropriate satellite assembly." )

Are you running a non english system?, non english internet explorer? non
english framework?

Then again
 
occurs in my usercontrol:

this.cmdBack.Image =
((System.Drawing.Image)(resources.GetObject("cmdBack.Image")));



Jon
 
Are you using cultureinfo somewhere? Or some windows form missing some
info or whatnot?

Can't say I'm familiar with the error, I only did some testing with
satelite assemblies and setting different cultures using cultureinfo and
ResourceManager.
 
Back
Top