【发布时间】:2017-07-05 01:25:58
【问题描述】:
我序列化单个类中不同类列表的数量。序列化功能正常工作,但反序列化功能不能正常工作。
错误:“无法找到程序集 'SEPL.AutoDCRBIM,版本 = 1.0.0.0, Culture=neutral, PublicKeyToken=null'。”
这两个功能都在同一个项目而不是不同的项目中运行。
【问题讨论】:
-
你使用哪个序列化器
-
` 使用 (Stream stream = File.Open(path, FileMode.Create)) { BinaryFormatter bin = new BinaryFormatter(); //bin.Binder = new AllowAllAssemblyVersionsDeserializationBinder(); bin.Serialize(流,clsCheckModelErrors.bimdcr); }`
标签: c#