我将一些配置物体编成册,并将结果储存在数据库内。
new BinaryFormatter().Serialize(memoryStream, instance);
Convert.ToBase64String(memoryStream.ToArray());
这些对象将在稍后进行反序列化。
new BinaryFormatter().Deserialize(memoryStream);
It s possible, that the Application has some new assembly versions at the time of deserialization. In general it works well, but sometimes I get a file load exception: "The located assembly s manifest definition does not match the assembly reference.". The assemblies work all with strong naming, can that be the problem and how could I avoid this problem?
救助