反序列化错误:“无法找到程序集” [英] Deserialization Error: "Unable to find assembly"

查看:123
本文介绍了反序列化错误:“无法找到程序集”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试反序列化客户端软件上的结构时,出现以下错误。这是什么意思?我在两个软件的名称中完全相同的模块中声明结构完全相同。

无法找到程序集'Server v1.0 ,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null'。

I get the following error when I attempt to deserialize a structure on the client software. What does this mean? I have the declaration of the structure exactly the same in a module named exactly the same in both peices of software.

Unable to find assembly 'Server v1.0, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

推荐答案

注意:

我有我的结构delcared在模块中
序列化和反序列化发生在类中
我确保在模块和类上导入System.Runtime.Serialization
Notes:

I have my structures delcared in a module
The serialization and de-serialization takes place in a class
And I have made sure System.Runtime.Serialization is imported on both the module and the class


这篇关于反序列化错误:“无法找到程序集”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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