1

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?

Thx

UPDATE

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

1 Answer 1

1
<system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <!-- 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" />**
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
3
  • Yes, but which config file does that go in. web.config in ISAPI ?
    – SteveCl
    Commented May 28, 2012 at 17:13
  • Yes indeed, that is the place. Commented May 28, 2012 at 17:17
  • Sorry for the delay in marking as answer
    – SteveCl
    Commented Nov 19, 2013 at 17:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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