Whenever I throw an exception in my service, another exception is thrown right after it:
System.ServiceModel.CommunicationException: Ther开发者_如何学Pythone 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).
I'm implementing IErrorHandler so I can log (using log4net) all unhandled exceptions:
bool IErrorHandler.HandleError(Exception error)
{
if (!(error is FaultException))
{
logger.Fatal("Unhandled Exception", error);
}
return false;
}
Any idea why is that?
Problem was client calling Abort on the channel whenever I returned a fault exception.
精彩评论