BinaryFormatter deserialize gives SerializationException

前端 未结 6 978
别跟我提以往
别跟我提以往 2020-12-16 15:28

I\'m getting an:

System.Runtime.Serialization.SerializationException: Unable to find assembly \'myNameSpace, Version=1.0.0.0, Culture=neutral, Pub

6条回答
  •  没有蜡笔的小新
    2020-12-16 16:07

    I followed the solution answered by JTtheGeek and in order to get it work for me I had to add the following just before the statement assemblyName = currentAssembly;:

    typeName = "yourNamespace.yourClassName";
    

    After that it worked great!

提交回复
热议问题