I serialize some configuration objects and store the result bytes in the database.
new BinaryFormatter().Serialize(memoryStream, instance);
Convert.ToBase64String(memoryStream.ToArray());
These objects will be deserialized later.
new BinaryFormatter().Deserialize(memoryStream);
It is possible that the application has several new build versions during deserialization. In general, this works well, but sometimes I get a file upload exception: "The installed assembly manifest definition does not match the assembly reference." All assemblies work with a strong name, maybe a problem, and how can I avoid this problem?
thanks for the help
source
share