Serializiation of Map.Position causes error

Topics: Bugs, Windows Forms
Dec 4, 2010 at 1:37 PM

Hi!

I just downloaded the latest version and found this bug:

- Build the solution

- Open "MainForm" of Demo.WindowsForms in the VS-Designer

- Start debug

- The following error-message is shown:

Could not load file or assembly "file:///D:/Dropbox/GMap/greatmaps_0fac7ecd9b9a_23.11.2010/GMap.NET.Core/bin/x86/Debug/GMap.NET.Core.dll" or one of its dependencies. An attempt was made to load a program with an incorrect format. Line 132, Position 5. D:\Dropbox\GMap\greatmaps_0fac7ecd9b9a_23.11.2010\Demo.WindowsForms\Forms\MainForm.resx

- If I remove this entry from  MainForm.resx :

<data name="MainMap.Position" mimetype="application/x-microsoft.net.object.binary.base64">
    <value>
        AAEAAAD/////AQAAAAAAAAAMAgAAAFBHTWFwLk5FVC5Db3JlLCBWZXJzaW9uPTEuNS4zLjMsIEN1bHR1
        cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjg1YjkwMjdiNjE0YWZlZgUBAAAAFEdNYXAuTkVULlBv
        aW50TGF0TG5nAgAAAANsYXQDbG5nAAAGBgIAAAAAAAAAAAAAAAAAAAAAAAAACw==
</value>
  </data>

AND remove this line from MainForm.Designer.cs:

this.MainMap.Position = ((GMap.NET.PointLatLng)(resources.GetObject("MainMap.Position")));

it works as long as I don't open MainForm.cs in the Designer again.
So the problem seems to be that every time I open MainForm.cs in the Designer, the property "Position" is being set and serialized, and then the error occurs.
What can I do to solve this problem?
Please help!
Thanks a lot!!

Dec 4, 2010 at 1:59 PM

should be fixed now