Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I converted a vb2010 project into vb2008.

after conversion, i run the project in vb 2008, i noticed that the menu strip is not working, so i deleted it and have it replace with a new menustrip from vb 2008, eversince, this error pops out, but the project is working.

Code generation for property 'mainmenustrip' failed.
Error was:'Type System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b03f57f11d50a3a cannot be located.

I instead remove the menustrip just now, and the error above now keeps on popping.

Why should I do?


Thnx In advance.
Posted

1 solution

Still, type is referred in the project file. To resolve you have to open the resource file and delete all the missing (or with error) resource images and re-add them (in VS2008).

Alternative solution is that right click on the Resources.resx file in the solution explorer and select open with and then select the XML Editor, replace the "version=4.0.0.0" with "version=2.0.0.0" for all resources with error, and it should work without deleting the resources.
 
Share this answer
 
Comments
Alan Tuscano 12-Feb-12 22:53pm    
Hi Ganesan,

I was searching for resources.resx and accidentally right click on app.config, i tried looking for version=4.0.0.0 and found none, i then run the program and now, seems its fine.. the error popping out is gone..

what happened in there?
Ganesan Senthilvel 12-Feb-12 23:50pm    
Alan,

It is due to the mismatch in .NET framework 2.0 vs 4.0. In VS2010, default target framework is 4.0; whereas VS2008 doesn't.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900