Turn on IncludeExceptionDetailInFaults

If you get following error :

The server was unable to process the request due to an internal error. For more information about the error, either 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, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.

Then change the following in web.config file.
Go to  behaviors - serviceBehaviors -
<serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="true" />

Comments