每当我在我的服务中抛出一个异常时,它之后就会抛出另一个异常:
System.ServiceModel.CommunicationException: There was an error reading from the
pipe: Unrecognized error 109 (0x6d). ---> System.IO.PipeException: There was an
error reading from the pipe: Unrecognized error 109 (0x6d).
我正在实现 IErrorHandler 所以我可以记录(使用 log4net)所有未处理的异常:
bool IErrorHandler.HandleError(Exception error)
{
if (!(error is FaultException))
{
logger.Fatal("Unhandled Exception", error);
}
return false;
}
知道为什么吗?