This problem manifests (ha ha) itself at the following line in all my WinForms projects in my solution:
public void InitializeComponent()
this.Icon = ((System.Drawing.Icon) (resources.GetObject("$this.Icon"))); //Exception!!
Now, this code worked absolutely fine in VS2003, .Net 1.1, no troubles, but I've just recently converted to .Net 2.0 and have now started getting this exception.
I don't have a resource file, I just set the Icon for the project to be 'x.ico'.
For the moment, by commenting out the offending line I can get the system to start, but I want my icons back, how and why?
Ps. So you don't suggest here are the solutions I've tried:
* Ensuring namespace and default namespace are the same,
* Removing and readding the Icon,
* I don't have any classes/enums/structs etc defined *above* my Form class,