none
WebFaultException thrown from an Inspector RRS feed

  • Question

  • Is it possible to throw a WebFaultException from an inspector and have it returned to the client?  I am able to throw the WebFaultException from my OperationContract but when I throw a WebFaultException from my inspector I get this  returned to the client.

    ... deleted HTML tags <p class="heading1">Request Error</p> <p>The server encountered an error processing the request. The exception message is 'Object reference not set to an instance of an object.'. See server logs for more details. The exception stack trace is: </p> <p> at System.ServiceModel.Description.WebHttpBehavior.IsXmlSerializerFaultFormat(OperationDescription operationDescription) at System.ServiceModel.Dispatcher.WebErrorHandler.ProvideFault(Exception error, MessageVersion version, Message&amp; fault)</p> </div> .... deleted HTML tags
    • Edited by KNewman1 Tuesday, May 15, 2012 6:11 PM
    Tuesday, May 15, 2012 6:10 PM

Answers