本文介绍了打开IncludeExceptionDetailInFaults的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用在某些情况下可以工作并出现异常的asmx Web服务:
I am using asmx webservice that work in some cases and getting exception :
我必须尝试通过将其添加到web.config来打开IncludeExceptionDetailInFaults,但是我的孩子无效:
I have to try to turn on IncludeExceptionDetailInFaults by adding this to web.config but I got invalid child :
<configuration>
<system.serviceModel>
<serviceBehaviors>
<behavior name="debug">
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
...
</system.serviceModel>
</configuration>
请提出任何建议.
推荐答案
<configuration>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="debug">
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
...
</system.serviceModel>
</configuration>
这篇关于打开IncludeExceptionDetailInFaults的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!