title: turn on IncludeExceptionDetailInFaults?
body: <p>My WCF service throwing exception. not able to find what is the exception could be.</p>
  
  <p>It throws like this </p>
  
  <pre><code>System.ServiceModel.FaultException: 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
  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.
  </code></pre>
  
  <h2>web.config</h2>
  
  <pre><code>&lt;system.serviceModel&gt;
  &lt;services&gt;
    &lt;service name="ServiceName" behaviorConfiguration="debug" /&gt;
  &lt;/services&gt;
  &lt;bindings&gt;
    &lt;basicHttpBinding&gt;
      &lt;binding name="BasicHttpBinding_ITwoWayAsync" /&gt;
    &lt;/basicHttpBinding&gt;
  &lt;/bindings&gt;
  &lt;client&gt;
    &lt;endpoint address="http://company.com/CustCommPreferences.svc" 
              binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ITwoWayAsync" 
              contract="OptInOutServices.CustCommPreferences" name="BasicHttpBinding_ITwoWayAsync" /&gt;
  &lt;/client&gt;
  &lt;behaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior name="debug"&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
        &lt;serviceMetadata httpGetEnabled="true" /&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
  </code></pre>
  
  <p></p>
  
  <p>Looks like I have added ServiceDebug also, Still I am not able to find inner Exception or Stack trace</p>
  
  <pre><code>catch (FaultException ex)
   {
      string msg = "FaultException: " + ex.Message;
      MessageFault fault = ex.CreateMessageFault();
      if (fault.HasDetail == true)
      {
         System.Xml.XmlReader reader = fault.GetReaderAtDetailContents();
         if (reader.Name == "ExceptionDetail")
         {
            ExceptionDetail detail = fault.GetDetail&lt;ExceptionDetail&gt;();
            msg += "\n\nStack Trace: " + detail.StackTrace;
         }
      }
      return View("Error");
  
     }
  </code></pre>