.Net Remoting 排错笔记:The constructor to deserialize an object of type 'xxx.xxxx.xxxxx' was not found.
错误提示:
The constructor to deserialize an object of type 'xxx.xxxx.xxxxx' was not found.
场景:
服务程序使用从 ApplicationException 继承的自定义异常。
解决措施:
添加如下构造函数的重载即可。
protected xxxxx(SerializationInfo info, StreamingContext context)
: base(info, context)
{ }