사용자 지정 WCF 서비스-includeExceptionDetailInFaults
-
09-12-2019 - |
문제
나는 사용자 지정 WCF 서비스를 사용하여 만든 CKS toolkit for SharePoint.
어떻게 사용 includeExceptionDetailInFaults
에서 이러한 서비스는?
에게 내가 이해하는 방식은,사용하는 경우 BasicHttpBindingServiceMetadataExchangeEndpoint
SharePoint 만듭한 끝점으로 동적으로?
그래서 나는 어디에 사용되는 예외?
다.
업데이트
나는 장식할 수 있는 서비스 구현 [ServiceBehavior(IncludeExceptionDetailInFaults = true)]
작동하는지만,그것은 바람직하이에서 config??
해결책
<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>
. 제휴하지 않습니다 sharepoint.stackexchange