Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

up vote 1 down vote accepted
<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>
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. –  C. Marius - MVP May 28 '12 at 17:17
    
Sorry for the delay in marking as answer –  SteveCl Nov 19 '13 at 17:13

Your Answer

 
discard

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.