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

問題は、障害例外を返すたびにクライアントがチャネルで中止を呼び出すことでした。

于 2009-12-13T07:49:09.890 に答える