當我嘗試加載從web服務方法無法處理該請求,我得到一個錯誤:服務器由於內部錯誤
「服務器由於內部錯誤無法處理該請求有關。有關錯誤的更多信息,請打開服務器上的IncludeExceptionDetailInFaults(來自ServiceBehaviorAttribute或來自配置行爲),以便將異常信息發送回客戶端,或根據Microsoft .NET Framework SDK文檔啓用跟蹤並檢查服務器跟蹤日誌「
這是我的app.config端點def:
<services>
<service name="Service" behaviorConfiguration="debug">
</services>
<client>
<endpoint name="Service" address="net.tcp://localhost:12708/" binding="netTcpBinding" bindingConfiguration="netTcp" contract="path.IService" >
<identity>
<servicePrincipalName />
</identity>
</endpoint>
</client>
<serviceBehaviors>
<behavior name="debug">
<serviceDebug includeExceptionDetailInFaults="True" />
</behavior>
</serviceBehaviors>
如果我聲明瞭serviceBehaviors,我看不到更多信息事件。 有人可以告訴我如何查看有關此錯誤的更多詳細信息?
不要使WCF跟蹤,看看發生了什麼事情。請參閱http://stackoverflow.com/a/4271597/870604 – ken2k
我編輯了您的標題。請參閱:「[應該在其標題中包含」標籤「](http://meta.stackexchange.com/questions/19190/)」,其中的共識是「不,他們不應該」。 –