我看到很多與此相關的線程,但我仍然無法解決此問題。我有一個silverlight busiless應用程序,我在其中添加了啓用silverlight的wcf服務。在開發服務器上一切正常,但是當我在同一臺機器上的ISS7上部署應用程序時,當我訪問該服務時,出現錯誤部署的Silverlight wcf服務導致錯誤
操作過程中發生異常,導致結果無效。檢查異常詳情的InnerException。
在System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() 在QTMS.QTMSWcfService.GetTestArtifactHierarchyCompletedEventArgs.get_Result() 在QTMS.Views.AutomationStatus.QTMSWcfServiceProxy_GetTestArtifactHierarchyCompleted(對象發件人,GetTestArtifactHierarchyCompletedEventArgs TestArtifactsList) 在QTMS.QTMSWcfService.QTMSWcfServiceClient.OnGetTestArtifactHierarchyCompleted (對象狀態)
這裏是我的web.config內容
這裏是ServiceReferences.ClientConfig文件的內容
<system.serviceModel>
<bindings>
<customBinding>
<binding name="CustomBinding_QTMSWcfService">
<binaryMessageEncoding />
<httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />
</binding>
</customBinding>
</bindings>
<client>
<endpoint address="http://localhost:9702/QTMSWcfServices/QTMSWcfService.svc"
binding="customBinding" bindingConfiguration="CustomBinding_QTMSWcfService"
contract="QTMSWcfService.QTMSWcfService" name="CustomBinding_QTMSWcfService" />
</client>
</system.serviceModel>
我無法解決以下問題
•爲什麼服務在部署時不工作?我嘗試將clientaccesspolicy.xml放在/ bin文件夾中,也放在svc文件所在的文件夾中,但這並沒有幫助。我還將端點地址更改爲指向我的計算機的IP地址。 •我如何看到內部異常的內容? •如何檢查我的wcf服務是否正在運行? 順便說一句,我的wcfservice返回一個自定義對象,並在我關閉的每個函數調用中建立一個數據庫連接。
我似乎無法得到它的工作。請幫忙!如果需要,我可以提供更多細節。
感謝EugeneOS。菲德勒幫助。這是由於會話導致的重定向問題。我們的IIS的配置方式使得url的格式類似於http:// /Silverlightapp/(S(oirppxrwzhlf2a2vbia1ui45))/Default.aspx#/Home 所以我不得不在另一臺iis服務器上安裝服務,可以將端點地址設爲http:// /Silverlightapp/MyService.svc。這解決了這個問題。 –
user176687
2009-10-09 03:37:20