We are working on WCF service hosted in Sharepoint 2010 and need to propagate exception information from server to the client. Currently when exception happens on
the server we get the following generic error message: “The server was unable to process the request due to an internal error. For more information about the error turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the
<serviceDebug> configuration behavior) on the server in order to send the exception information back to the client.”
For standalone (not Sharepoint hosted) WCF web service there is web.config configuration file where IncludeExceptionDetailInFaults=”true” can be set. But
when WCF service is hosted in SP 2010 using dynamic configuration with service factory (MultipleBaseAddressBasicHttpBindingServiceHostFactory) there are no configuration file and we are totally puzzled how and where can we set IncludeExceptionDetailInFaults=”true”
to propagate exception details to the client.
View Complete Post