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??

          <!-- 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" />
  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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