我有一個WCF數據服務託管在Asp.Net網站。這裏是我的web.config服務部分:如何調試WCF數據服務?
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
<services>
<service name="DataServiceHost"
behaviorConfiguration="DataServiceBehavior">
<endpoint name="DataServiceHost"
address=""
binding="webHttpBinding"
contract="System.Data.Services.IRequestHandler" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="DataServiceBehavior">
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
而且我在InitializeService
方法config.UseVerboseErrors = true;
。
我打了F5
我進入調試模式,並瀏覽到我的服務,得到一個錯誤,雖然它沒有在VS中打破。我很茫然。
錯誤btw:服務器在處理請求時遇到錯誤。查看服務器日誌獲取更多詳細信
我查找了日誌...我有ELMAH設置爲該網站,沒有在那裏。所以我不確定它在說什麼服務日誌。
任何幫助將不勝感激。
你是如何「瀏覽到你的服務」? – 2010-11-03 16:17:03
http://localhost/services/myservice.svc我有調試安裝程序使用IIS。 – 2010-11-03 16:24:04