久久久久久久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 的類)
主站蜘蛛池模板: 中文字幕一区二区三区精彩视频 | 欧美日韩综合一区 | 91免费在线| 午夜免费电影院 | 国内久久精品 | 日日摸夜夜添夜夜添特色大片 | 欧美激情久久久久久 | 国产一级淫片a直接免费看 免费a网站 | 久久综合久色欧美综合狠狠 | 日韩在线第一 | 涩涩操 | 狠狠做深爱婷婷综合一区 | 国产精品v | 国产精品一区二区不卡 | 国产精品国产馆在线真实露脸 | 久久久国产一区二区三区 | 欧美精品欧美精品系列 | 老妇激情毛片免费 | 久久综合一区二区三区 | 国产一区二区三区在线 | 久久亚洲一区二区 | jizz在线看片 | 91免费电影| 午夜精品视频在线观看 | 一级毛片在线播放 | 亚洲欧美高清 | 91久久久久久久久久久久久 | 精品少妇一区二区三区在线播放 | 亚洲一区视频在线 | 最新国产视频 | 在线播放亚洲 | 日韩精品免费视频 | 18成人在线观看 | 91久久久久久久 | 色偷偷噜噜噜亚洲男人 | 99re视频在线免费观看 | 成人国产免费观看 | 久久99精品久久久久蜜桃tv | 国产剧情久久 | 欧美日韩福利视频 | 久久久久久色 |