[EndpointNotFoundException: There was no endpoint listening at

感情迁移 提交于 2019-12-06 04:30:59

问题


Error Message: [EndpointNotFoundException: There was no endpoint listening at "Link/MobileMotivation.asmx" that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.]

This is a MVC4 applcation, it works fine on the local machine. However when I implement it to the server which is the same server as the web service, it shows the error message.

<system.serviceModel>
<bindings>
  <basicHttpBinding>
    <binding name="MobileMotivationSoap" />
  </basicHttpBinding>
</bindings>
<client>
  <endpoint address="http://stuiis.cms.gre.ac.uk/bb116/FinalYear2/FinalYear2/MobileMotivation.asmx"
    binding="basicHttpBinding" bindingConfiguration="MobileMotivationSoap"
    contract="MobileMotivationService.MobileMotivationSoap" name="MobileMotivationSoap" />
</client>


回答1:


You might need to edit the anonymous authentication settings.

Go to:

  1. Server Manager
  2. IIS
  3. Connections > Sites > YourSite
  4. Click Authentication > Enable

At this point you can select application pool identity.

More details here: A web site code can't connect to a soap service on the same server



来源:https://stackoverflow.com/questions/22357507/endpointnotfoundexception-there-was-no-endpoint-listening-at

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!