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

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

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

問題描述

我有一個(gè)運(yùn)行良好的 WCF 服務(wù),但發(fā)生了一些變化,我不知道是什么.

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

我得到了這個(gè)例外:

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

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.

這很令人困惑,因?yàn)槲疫\(yùn)行的是 .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.

推薦答案

定義一個(gè)行為 在您的 .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>

然后按照以下方式將行為應(yīng)用于您的服務(wù):

Then apply the behavior to your service along these lines:

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

您也可以通過編程方式進(jìn)行設(shè)置.請參閱這個(gè)問題.

You can also set it programmatically. See this question.

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

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

相關(guān)文檔推薦

Is there a C# library that will perform the Excel NORMINV function?(是否有執(zhí)行 Excel NORMINV 函數(shù)的 C# 庫?)
Select x random elements from a weighted list in C# (without replacement)(從 C# 中的加權(quán)列表中選擇 x 個(gè)隨機(jī)元素(無需替換))
Create a summary description of a schedule given a list of shifts(給定輪班列表,創(chuàng)建時(shí)間表的摘要描述)
C# Normal Random Number(C# 普通隨機(jī)數(shù))
Standard deviation of generic list?(通用列表的標(biāo)準(zhǔn)偏差?)
AsyncCTP: Creating a class that is IAwaitable(AsyncCTP:創(chuàng)建一個(gè) IAwaitable 的類)
主站蜘蛛池模板: 九色国产 | 国产999精品久久久影片官网 | 丝袜毛片 | 欧美成人高清 | 精品国产乱码久久久久久影片 | a级在线免费视频 | 最新91在线| 亚洲最大av网站 | 99pao成人国产永久免费视频 | 激情毛片| 成人午夜在线 | 国产精品18久久久久久白浆动漫 | 狠狠操狠狠干 | 国产日韩视频 | 精品国产乱码久久久久久a丨 | 国产高清视频在线观看 | aa级毛片毛片免费观看久 | 日本在线视频一区二区 | 成人亚洲精品 | 日韩av成人在线 | 日韩国产欧美 | 2019天天操 | 欧美一级大片 | 午夜专区 | 在线视频中文字幕 | 日韩在线电影 | 亚洲日韩欧美一区二区在线 | 一区二区国产精品 | 国产一二三区精品视频 | 天天干夜夜拍 | 亚洲久视频 | 免费a国产 | 噜噜噜噜狠狠狠7777视频 | 亚洲a在线观看 | 国产欧美一区二区三区久久手机版 | 一区二区三区四区在线视频 | 久久久精品一区二区三区 | 在线视频中文字幕 | 色综合天天天天做夜夜夜夜做 | 一级片免费在线观看 | 蜜臀av日日欢夜夜爽一区 |