我有一個WCF服務部署在負載均衡器後面,當我嘗試使用SOAP訪問它時它工作得很好,但是當我嘗試通過REST URL訪問它時,出現下面提到的錯誤。WCF REST:WebHost無法處理請求
這是REST URL我試圖以https去實現它:// devreporting.dev.sample.com/ReportingManagement.svc/getAddtionsByCategory ..
負載平衡器VIP爲https:// devreporting.dev .sample.com和防火牆後面只有一個服務器是dev01
我相信這是主機頭的一些問題,但不知道如何解決這個問題。任何想法將不勝感激。
Message: WebHost failed to process a request. Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/12646224
Exception:
System.Web.HttpException: There was no channel actively listening at 'https://dev01.dev.sample.com:17005/ReportingManagement.svc/reporting/getAddtionsByCategory'.
This is often caused by an incorrect address URI.
Ensure that the address to which the message is sent matches an address on which a service is listening. --->
System.ServiceModel.EndpointNotFoundException: There was no channel actively listening at 'https://dev01.dev.sample.com:17005/ReportingManagement.svc/reporting/getAddtionsByCategory'.
This is often caused by an incorrect address URI.
Ensure that the address to which the message is sent matches an address on which a service is listening.
at System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult result)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest() at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
--- End of inner exception stack trace ---
at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
Process Name: w3wp Process ID: 4760
能否請您解釋一下是什麼SOAPURI之間的差異和休息URI,你的意思是一個在Http上,另一個在Https上? – hussian 2016-04-26 13:59:10