zoukankan      html  css  js  c++  java
  • 确保客户端可以接收到服务端的异常serviceDebug includeExceptionDetailInFaults="true"

    1.为了确保客户端可以接收到服务端反馈的异常

    在服务端的配置文件中需要有

    <system.serviceModel>
        <behaviors>
          <serviceBehaviors>
            <behavior>
              <serviceDebug includeExceptionDetailInFaults="true"/>
            </behavior>
          </serviceBehaviors>
        </behaviors>
          </system.serviceModel>

    在最终发布服务的时候,客户端程序是给客户使用的,为了避免客户直接知道服务端的异常。

    所以,程序调试完成以后,需要将

    serviceDebug 的includeExceptionDetailInFaults设置为false
  • 相关阅读:
    观光公交
    luogu 4779 【模板】
    最小生成树(luogu 3366)
    计算系数
    更新区间,求单点—— luogu 3368
    HDU
    HDU
    HDU
    HDU
    BFS
  • 原文地址:https://www.cnblogs.com/chucklu/p/4643424.html
Copyright © 2011-2022 走看看