Answer the question
In order to leave comments, you need to log in
Problem with deserialization of C# object. Where is the mistake?
The object is serialized in one program, then the file is transferred to another program and it desserializes it, here is the error text:
Answer the question
In order to leave comments, you need to log in
2 possible solutions: serialize in xml or make sure that the class that is serialized would be in a separate library.
Serialization and deserialization must be in the same assembly. Otherwise, it cannot recognize types. Therefore, serialization / deserialization methods are taken out in one project / dll. Or serialize to xml, then the methods can be spread across different assemblies.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question