サービスで例外をスローすると、その直後に別の例外がスローされます。
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;
}
それはなぜですか?