|
| MissingManifestResourceException |
|
|
|
|
| Messages |
|
Related Types |
This message was discovered on microsoft.public.vsnet.general.
| Mark Olbert |
| GOOD ANSWER |
Could someone please explain to me why, after compiling and working fine for hours, I make a minor change that has nothing to do with any icons or embedded resources and suddenly my application is blowing up with MissingManifestResourceExceptions?
The offending line of code is:
this.notifyCtl.ContextMenu = this.notifyMenu; >>>this.notifyCtl.Icon =((System.Drawing.Icon)(resources.GetObject("notifyCtl.Icon"))); this.notifyCtl.Text = "notifyIcon1"; this.notifyCtl.Visible = true;
The embedded resource file has an entry for the icon image:
<data name="notifyCtl.Icon" type="System.Drawing.Icon, System.Drawing, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>
AAABAAIAICAQAAAAAADoAgAAJgAAABAQEAAAAAAAKAEAAA4DAAAoAAAAIAAAAEAAAAABAAQAAAAAAIAC
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAICAgADAwMAAAAD/AAD/
AAAA//8A/wAAAP8A/wD//wAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAIcAAAAAAAAAAAAAAAAAAAj49wAAAAAAAAAAAAAAAAAAj3+HAAAAAAAAAAAAAAAAAA
f3+PcAAAAAAAAAAAAAAAAAj3+PhwAAAAAAAAAAAAAAAAj3+Pj3AAAAAHd3eAAAAAAAf3+Pj4cAB3eIiI
iIAAAAAAj3+Pj4d3iP///4iAAAAAAAj3+Pd4iPT/zM/4AAAAAAAAj4d4iPT////8+AAAAAAAAAd4j/T/
/////PAAAAAAAAd4j0////////8AAAAAAAd4j0////////8AAAAAAAd4j0////////AAAAAAD/AIj0//
/////wAAAAAAAAj/8A//////8ACPgAAAAAAAj///////AAj4+HAAAAAAAA/////wAAAPf4+AAAAAAACP
/w8AAAAACPf4cAAAAAAAj/D/AAAAAAB/j4AAAAAAAI/wjwAAAAAA9/hwAAAAAACPAAAAAAAAAA9/gAAA
AAAAjwAAAAAAAAAH+HAAAAAAAAAAAAAAAAAAAI+AAAAAAAAAAAAAAAAAAAD4cAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////
///n////wf///4B////AH///4Af///AB/gf4AHAB/AAAAP4AAAD/AAAB/4AAAf+AAAP+AAAH+AAAD5AA
AD8AAAD/AAAA/4AAAP+AAwD/gB8A/4B/gP+Af4D/hP/A/4f/wP+P/+D////g////8f//////////////
//8oAAAAEAAAACAAAAABAAQAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAA
AACAAIAAgIAAAICAgADAwMAAAAD/AAD/AAAA//8A/wAAAP8A/wD//wAA////AAAAAAAAAAAAAAAAAAAA
AAAI+AAAAAAAAACPjwAAAAAAAAj4+AAIiIAAAIeAiE/MgAAAAAhP//yAAACIT///8AAAiE///wAAAA8A
//AAgAAAAPAAAHjwAAAPCAAAB4AAAAgAAAAA8AAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAA//8AAI//
AAAD/wAAgOEAAMAAAADgAAAA8AAAAMABAAAABwAAAA8AAAAPAAAHDwAAD48AAD+PAAD/zwAA//8AAA== </value>
Removing, rebuilding and re-adding the NotifyIcon object has no effect (although when the NotifyIcon object is removed the program compiles and runs fine...but it's not too useful since it lacks a tasktray icon).
- Mark
|
|
|
| |
|
|
| |
| |
| Mark Olbert |
| GOOD ANSWER |
Some further info...
Eliminating the icon from the NotifyIcon avoids the problem.
Creating a new Windows Form file and copying ALL the code into it from the offending form solves the problem.
This... is ridiculous! There is obviously some kind of hidden "link" between files that has gotten munged up...and the only way to solve it is to copy source code to a clean file and start over???
Come on, Microsoft! After having this IDE and language in commercial release for over a year it shouldn't be suffering from such a basic bug!
- Mark
|
|
|
| |
|
|
| |
|
|
|
|
|
|
|
|
BootFX
Reliable and powerful .NET application framework. |
|
|
|
|
|
|