找不到总成 [英] Unable to find assembly

查看:112
本文介绍了找不到总成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我序列化一个ArrayList到一个二进制文件,以便它通过TCP / IP发送。序列化的文件由服务器创建的,我希望能够用我正在写此刻的客户端反序列化。

I'm Serializing an ArrayList to a binary file in order to send it across TCP/IP. The serialized file is created by the server and I hope to be able to deserialize it with the client that I'm writing at the moment.

然而,当客户端尝试反序列化,它抛出一个SerializationException,因为它无法找到组件(presumably)的连载开始与文件。

However, when the client attempts to deserialize it throws a SerializationException because it can't find the assembly (presumably) which serialized the file to begin with.

我如何解决这个问题呢?

How do I get around this?

推荐答案

贵ArrayList中包含自定义数据类型(比如你所在的班级)?

Does your arraylist contain custom data type (i.e. your own classes)?

ArrayList中不会被反序列化,除非code运行反序列化可以访问所有包含在数组列表中的类。

The arraylist won't be deserialized unless the code running the deserialize has access to all of the classes contained within the arraylist.

这篇关于找不到总成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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