Sunday 26 June 2016

The server was unable to process the request due to an internal error. [Trace]

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 SDK documentation and inspect the server trace logs.

Define a behavior in your .config file:

<configuration>
  <system .servicemodel="">
    <behaviors>
      <servicebehaviors>
        <behavior name="debug">
          <servicedebug includeexceptiondetailinfaults="true">
        </servicedebug></behavior>
      </servicebehaviors>
    </behaviors>
    ...
  </system>
</configuration>