我有一个WCF服务部署在负载均衡器后面,当我尝试使用SOAP访问它时,它可以正常工作,但是当我尝试通过REST URL访问它时,我会收到下面提到的错误。
这是我尝试用REST URL访问它的链接:https:// devreporting.dev.sample.com/ReportingManagement.svc/getAddtionsByCategory。
负载均衡器VIP为https:// devreporting.dev.sample.com,防火墙后面只有一个服务器dev01。
我认为这可能是主机头的问题,但不确定如何解决。任何想法都将不胜感激。
这是我尝试用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