SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a custom WCF service that I created using the CKS toolkit for SharePoint.

How do I enable includeExceptionDetailInFaults in these services?

The way I understand it is, when using BasicHttpBindingServiceMetadataExchangeEndpoint SharePoint creates the endpoints dynamically?

So where do i enabled exceptions?



I can decorate the service implementation with [ServiceBehavior(IncludeExceptionDetailInFaults = true)] which works, but it's preferable to have this in config??

share|improve this question
up vote 1 down vote accepted
          <!-- To avoid disclosing metadata information, set the values below to false before deployment -->
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
          **<serviceDebug includeExceptionDetailInFaults="true" />**
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
share|improve this answer
Yes, but which config file does that go in. web.config in ISAPI ? – SteveCl May 28 '12 at 17:13
Yes indeed, that is the place. – Marius Constantinescu - MVP May 28 '12 at 17:17
Sorry for the delay in marking as answer – SteveCl Nov 19 '13 at 17:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.