0

每当我在我的服务中抛出一个异常时,它之后就会抛出另一个异常:

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;
    }

知道为什么吗?

4

1 回答 1

1

问题是客户端在我返回错误异常时在通道上调用 Abort。

于 2009-12-13T07:49:09.890 回答