2010-09-01 164 views
0

當我嘗試添加WCF服務的服務引用時出現錯誤。錯誤細節如下。我的Web服務託管在不同的服務器上,而我的客戶端位於不同的服務器上。當我直接從IE運行服務時,我可以看到該服務,但將其添加到.net Web應用程序中,出現錯誤。請指教爲wcf服務添加服務引用時出錯

There was an error downloading ' http://193.11.33.66/coverscanservice/DownloadCoverScan.svc '. The request failed with HTTP status 503: Service Unavailable. Metadata contains a reference that cannot be resolved: ' http://193.11.33.66/coverscanservice/DownloadCoverScan.svc '. The HTTP service located at http://193.11.33.66/coverscanservice/DownloadCoverScan.svc is too busy. The remote server returned an error: (503) Server Unavailable. If the service is defined in the current solution, try building the solution and adding the service reference again.

+0

服務器是否位於Windows域中和/或是否已啓用Windows集成身份驗證? – 2010-09-02 11:12:24

回答

1

如果你打開分配給該服務的應用程序池的屬性,你可以關閉快速失敗保護該池的複選框。這可能會減輕503錯誤,但它不會診斷您的真實問題。

您需要安裝windows debugging tools和/或Debug Diagnostics for IIS才能找到問題的真正根源。有些東西導致您的w3wp.exe進程重複崩潰,並且無法恢復。此外,請檢查您的事件日誌中與w3wp.exe相關的項目意外停止。那裏可能有幫助的信息。

0

在添加WCF Webservice引用後的ASP .NET Web應用程序中。右鍵單擊該引用,檢查配置服務引用更改設置,如集合類型集「System.collection.ObjectModel.ObservableCollection」。同時更改指定的重用類型引用的程序集設置了「Microsoft.Web.Infrastructure」。

之後構建項目調用服務方法使用它並運行它。