小智 7
您会在事件日志中找到错误,但将它们放在浏览器中确实更方便(尤其是在开发过程中)。要做到这一点:在转调试你的web.config
。此外,关闭自定义错误或将它们设置为"Remote only"
.
<configuration>
<system.web>
<customErrors mode="Off" />
<compilation debug="true" />
</system.web>
</configuration>
Run Code Online (Sandbox Code Playgroud)
在 web.config中的服务行为中尝试以下操作:
<behavior name="Your.Service.Type">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
9663 次 |
最近记录: |