Manifest / resource file conflict?

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
 
M

Morten Wennevik

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
 
J

Jon Davis

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
 
J

Jon Davis

occurs in my usercontrol:

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



Jon
 
M

Morten Wennevik

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top