.resx problem in VB.NET 2010

Topics: General, Windows Forms
Nov 28, 2010 at 1:31 AM

When I start the project in VB.NET I get this error in Form.resx file:

Could not load file or assembly 'file:///C:/Project1/GMap.NET.WindowsForms/GMap.NET.Core.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format. Line 126, position 5.

Here's that line:

<data name="GMapControl1.Position" mimetype="application/x-microsoft.net.object.binary.base64">

If I delete it the project starts ok, but if I change something on the form in design mode it gets regenerated.

I am using VB.NET 2010, targeting x86 CPU and .NET 2.0.

Any ideas?

Nov 28, 2010 at 4:27 AM

Tried this on 32-bit OS and it works correctly. I wonder if it has something to do with my 64-bit Win 7?

Nov 28, 2010 at 5:36 AM

Changed target framework to 4.0 and it works. No idea why

Googled a bit:



Nov 28, 2010 at 12:58 PM

hm.. interesting