title: How to turn on IncludeExceptionDetailInFaults
body: <p>I have a WCF webservice that gives me the following message whenever I'm trying to use it:</p>
  
  <blockquote>
    <p>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 &lt;serviceDebug&gt; 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.</p>
  </blockquote>
  
  <p>My question simply is - how can I turn on IncludeExceptionDetailInFaults? I know this has been asked like a million times around the web but no matter what I do I just can't get it work. Please save yourself pasting this <a href="https://stackoverflow.com/questions/8315633/turn-on-includeexceptiondetailinfaults-either-from-servicebehaviorattribute-or">Turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the &lt;serviceDebug&gt; configuration behavior) on the server</a></p>
  
  <p>I have read it countless times and tried everything but still nothing. I'm changing <code>includeExceptionDetailInFaults</code> to true and false and I can see no difference. Nothing happens so I must be missing something. Or am I looking in wrong place? Where should I look for those?</p>
  
  <p>Anyway here's my Web.config (part of it). If you need a complete config file I can post it but I have to change all the names etc. in it.</p>
  
  <pre><code>&lt;services&gt;
    &lt;service name="FOO.BAR.Services.CRMServices.Service1"&gt;
      &lt;endpoint address="" behaviorConfiguration="jsonBehavior" binding="webHttpBinding" bindingConfiguration="Service1Binding" contract="FOO.BAR.Services.CRMServices.IService1" /&gt;
    &lt;/service&gt;
    &lt;service name="FOO.BAR.Services.CRMServices.Service2" behaviorConfiguration="debug"&gt;
      &lt;endpoint address="" behaviorConfiguration="jsonBehavior" binding="webHttpBinding" bindingConfiguration="Service2Binding" name="FOO.BAR.Services.CRMServices.Service2" contract="FOO.BAR.Services.CRMServices.IService2" /&gt;
    &lt;/service&gt;
  &lt;/services&gt;
  &lt;behaviors&gt;
    &lt;endpointBehaviors&gt;
      &lt;behavior name="jsonBehavior"&gt;
        &lt;webHttp /&gt;
      &lt;/behavior&gt;
    &lt;/endpointBehaviors&gt;
    &lt;serviceBehaviors&gt;   
      &lt;behavior name="debug"&gt;   
        &lt;serviceMetadata httpGetEnabled="false" /&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
  </code></pre>
  
  <p>So I'm trying to use Service2. Hope you guys can spot what's wrong with that? Only thing I see that is different from the other question I linked is that I have two services. Also there was httpGetEnabled property already in the config file but removing it didn't make difference either.</p>
  
  <p>WCF service that I'm trying to run is made by another guy. I just got the Visual Studio solution, set up IIS and hosted that service there. I haven't done anything like that before so it can also be something to do with my configurations I think.</p>