久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

在服務器上打開 IncludeExceptionDetailInFaults(來自 S

Turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the lt;serviceDebuggt; configuration behavior) on the server(在服務器上打開 IncludeExceptionDetailInFaults(來自 ServiceBehaviorAttribute 或來自
本文介紹了在服務器上打開 IncludeExceptionDetailInFaults(來自 ServiceBehaviorAttribute 或來自 <serviceDebug> 配置行為)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我有一個運行良好的 WCF 服務,但發生了一些變化,我不知道是什么.

I have a WCF service that has been working perfectly, and something has changed and I don't know what.

我得到了這個例外:

System.ServiceModel.FaultException:由于內部錯誤,服務器無法處理請求.有關錯誤的更多信息,請在服務器上打開 IncludeExceptionDetailInFaults(來自 ServiceBehaviorAttribute 或來自配置行為)以便將異常信息發送回客戶端,或者根據 Microsoft .NET Framework 3.0 SDK 文檔打開跟蹤并檢查服務器跟蹤日志.

System.ServiceModel.FaultException: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.

這很令人困惑,因為我運行的是 .NET 4.0.

This is confusing because I am running .NET 4.0.

在哪里打開 IncludeExceptionDetailInFaults?我正在努力尋找它.

Where do I turn on IncludeExceptionDetailInFaults? I'm battling to find it.

推薦答案

定義一個行為 在您的 .config 文件中:

Define a behavior in your .config file:

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

然后按照以下方式將行為應用于您的服務:

Then apply the behavior to your service along these lines:

<configuration>
  <system.serviceModel>
    ...
    <services>
      <service name="MyServiceName" behaviorConfiguration="debug" />
    </services>
  </system.serviceModel>
</configuration>

您也可以通過編程方式進行設置.請參閱這個問題.

You can also set it programmatically. See this question.

這篇關于在服務器上打開 IncludeExceptionDetailInFaults(來自 ServiceBehaviorAttribute 或來自 &lt;serviceDebug&gt; 配置行為)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Is there a C# library that will perform the Excel NORMINV function?(是否有執行 Excel NORMINV 函數的 C# 庫?)
Select x random elements from a weighted list in C# (without replacement)(從 C# 中的加權列表中選擇 x 個隨機元素(無需替換))
Create a summary description of a schedule given a list of shifts(給定輪班列表,創建時間表的摘要描述)
C# Normal Random Number(C# 普通隨機數)
Standard deviation of generic list?(通用列表的標準偏差?)
AsyncCTP: Creating a class that is IAwaitable(AsyncCTP:創建一個 IAwaitable 的類)
主站蜘蛛池模板: 99国产精品视频免费观看一公开 | 午夜免费视频 | 日韩电影在线 | 国产精品1区2区3区 欧美 中文字幕 | 天天射色综合 | 成人黄页在线观看 | 亚洲性视频网站 | 在线观看www高清视频 | 狠狠干网站 | 日日操夜夜干 | 一区二区三区精品视频 | 中文字幕精品一区二区三区在线 | 精品国产一区二区国模嫣然 | 99视频免费 | 精品国产乱码久久久久久影片 | 视频一区在线观看 | 亚洲国产日韩欧美 | gogo肉体亚洲高清在线视 | 日韩免费av | 一区二区国产精品 | 国际精品鲁一鲁一区二区小说 | 99综合网| 99精品视频网 | 精品无码久久久久国产 | 欧美日韩在线一区二区三区 | 中文字幕免费视频 | 91一区二区三区在线观看 | 精品国产乱码久久久久久闺蜜 | 亚洲 中文 欧美 日韩 在线观看 | 黄a网站| 亚洲视频中文字幕 | 91精品国产综合久久久久久首页 | 成人欧美一区二区三区白人 | 一级黄色片一级黄色片 | 亚洲v日韩v综合v精品v | 亚洲午夜视频 | 欧美aⅴ片 | 一区二区三区免费在线观看 | 精品日韩欧美一区二区 | 色悠悠久 | 在线观看av中文字幕 |