现在的位置: 首页 > 综合 > 正文

.Net Remoting 排错笔记:The constructor to deserialize an object of type ‘xxx.xxxx.xxxxx’ was not found.

2011年07月15日 ⁄ 综合 ⁄ 共 217字 ⁄ 字号 评论关闭
错误提示:
The constructor to deserialize an object of type 'xxx.xxxx.xxxxx' was not found.

场景:
服务程序使用从 ApplicationException 继承的自定义异常。

解决措施:
添加如下构造函数的重载即可。
protected xxxxx(SerializationInfo info, StreamingContext context)
    : base(info, context)
{ }

抱歉!评论已关闭.