c#1.1框架中的序列化 [英] serialization in c# 1.1 framework

查看:84
本文介绍了c#1.1框架中的序列化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的应用程序中序列化了一个类,我的客户端将其保存在序列化文件中,我继续开发我的应用程序,现在客户端向我发送了他的序列化文件,我尝试加载它我的应用程序抛出异常:

找不到程序集"MyAPP",版本= 1.0.3830.38879,文化=中性,PublicKeyToken =空.

i''ve serialized a class in my app and my client saved it in a serialization file,i''ve continue to develop my app,now the client send me he''s serialized file and i try to load it and my app throw an exception:

Cannot find the assembly "MyAPP", Version=1.0.3830.38879, Culture=neutral, PublicKeyToken=null.

how can i load it?

推荐答案

您可能需要手动反序列化该类,例如,解析内容并手动初始化一个新对象.
版本兼容的序列化属性直到2.0才存在
you might need to deserialize the class by hand, as in, parse the content and initialize a new object manually.

version tolerant serialization attributes dont exist till 2.0


这篇关于c#1.1框架中的序列化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆