'System.Resources.MissingManifestResourceException' after upgrading from VS2008 to VS2010

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span style="font-family:Courier New;font-size:x-small <span style="font-family:Courier New;font-size:x-small
Hello-
I installed VS2010 Pro RC and loaded a very large VS2008 C++ solution. It converted fine, and compiles without error. But when I run it, it dies with
An unhandled exception of type System.Resources.MissingManifestResourceException occurred in mscorlib.dll
Additional information: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "sda.sdaForm.resources" was correctly embedded or linked into assembly "sda" at compile time, or that all the satellite assemblies required are loadable and fully signed.
This happened in the main forms InitializeComponent(), trying to set the image for a toolstrip button. The image shows up fine in the designer. When I deleted the image and recompiled, I got the error again on the next image. After deleting all the toolstrip images, I got the error on the forms icon (which also shows up fine in the designer). After deleting that, I got the error on another forms icon. I eventually got to a point where I could run the program, as long as I didnt open certain forms.
I tried adding the icon to the main form again, but I then I got the error again. The odd thing is that my about form works fine with the same icon.
Im not intentionally doing anything tricky with resources, but this is a large project that has been around since VS2003.
I tried deleting the resX file for my main form, hoping it would get recreated, but building the project died with MSB3103: Invalid Resx file. Could not find file
I really want to be prepared for the transition to VS2010, but this has me stumped. Can anyone help?
Thanks-
Sean


View the full article
 
Back
Top