BinaryFormatter deserialize gives SerializationException

前端 未结 6 971
别跟我提以往
别跟我提以往 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 15:55

    If you don't have access to the original assembly that serialized the data, then you can use a SerializationBinder or a SerializationSurrogate. These two interfaces allow you to control how types are converted between one another when deserializing.

提交回复
热议问题