我們已經部署在生產服務器上的Web服務,仍然收到此錯誤一次試圖讓調用它:有沒有終點的聽力和錯誤404
"There was no endpoint listening at http://www.ourproductionserver.com/ClientService.svc/mex that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details."
當尋找到的InnerException,它返回我們404文件未找到...
奇怪的是,如果我們複製/經過與下面的錯誤(http://www.ourproductionserver.com/ClientService.svc)給出完全相同的網址,在IE或FireFox中,它顯示正確。 Heum,我們做什麼錯了?
我們也試過在本地服務器上,一切正常。
任何人alrealy得到類似的東西,以及如何解決它?
注意:對不起我的英文,我平時說法語。
我們webconfig:
<system.serviceModel>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
<bindings>
<webHttpBinding>
<binding name="WebBinding"></binding>
</webHttpBinding>
</bindings>
<services>
<service name="ourLib.ServiceImplementations.ClientActionService" behaviorConfiguration="ServiceBehavior">
<endpoint name="WebEndpoint" behaviorConfiguration="EndpointBehavior" address="" binding="webHttpBinding"
contract="ourLib.ServiceContracts.IClientActionService">
</endpoint>
<endpoint contract="ourLib.ServiceContracts.IClientActionService" address="mex" binding="mexHttpBinding"></endpoint>
</service>
<system.serviceModel>
我們ClientService.svc
<%@ ServiceHost Language="C#" Debug="true" Service="ourLib.ServiceImplementations.ClientActionService" %>
UPDATE 我們發現,ISP設置爲中等信任級別時,我們都設置爲完全信任。它能改變什麼嗎?如果是的話,我們怎麼能改變它,而不是web.config(我們試過)。
能把它是服務器的問題?因爲我們向服務器主機請求,他們回到我們身邊告訴他們一切都很好......但我不確定,因爲它爲什麼會在我們的測試服務器上運行,但不在他們身邊? –