N
N
Nikita Kochetkov2015-12-26 00:49:43
C++ / C#
Nikita Kochetkov, 2015-12-26 00:49:43

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:f020a61871444ed886a3c6b992a6b3ea.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Ai Lab, 2015-12-26
@vpuhoff

2 possible solutions: serialize in xml or make sure that the class that is serialized would be in a separate library.

E
eRKa, 2015-12-27
@kttotto

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 question

Ask a Question

731 491 924 answers to any question