Throwing an exception in a WCF service throws a CommunicationException -
Whenever I put an exception to my service, another exception is thrown right after:
System.ServiceModel.CommunicationException: error reading from pipe: unrecognized error 109 (0x6d). --- & gt; System.IO.PipeException: There was an error reading from pipe: unrecognized error 109 (0x6d).
I am implementing IErrorHandler so that I can log all unsociable exceptions (using log4net):
bool IErrorHandler.HandleError (exception error ) {If (! (Error is FaultException)) {logger.Fatal ("uncontrollable exception", error); } return false; }
Why have any thoughts?
The problem was the customer, whenever I return the mistake, I am aborting on the channel.
Comments
Post a Comment