This project has moved and is read-only. For the latest updates, please go here.

Error with serialization

Topics: General Topics
Aug 7, 2006 at 1:02 PM
Using sharpmap, i want to save all information of my map to a binary file.
BinaryFormatter BinaryWrite = new BinaryFormatter();
BinaryWrite.SurrogateSelector = ss;
BinaryWrite.Serialize(StreamWrite, myMap);

after trying to resolve some problem with surrogates, i saved my map to a binary file, called Then i want to reload this file but i get a error message box about FeatureDataTable: "the constructor to deserialize an object of type SharpMap.Data.FeatureDataTable was not found..."

BinaryFormatter BinaryRead = new BinaryFormatter();
BinaryRead.SurrogateSelector = ss;
SharpMap.Map map = (SharpMap.Map)BinaryRead.Deserialize(StreamRead);

Could anybody help me?

Thanks in advance.