[EndpointNotFoundException:没有端点在侦听

Spo*_*ule 5 web-services endpoint asp.net-mvc-4

错误消息:[EndpointNotFoundException:没有侦听“Link/MobileMotivation.asmx”的端点可以接受该消息。这通常是由不正确的地址或 SOAP 操作引起的。有关更多详细信息,请参阅 InnerException(如果存在)。]

这是一个 MVC4 应用程序,它在本地计算机上运行良好。但是,当我将其实现到与 Web 服务相同的服务器时,它会显示错误消息。

<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>
Run Code Online (Sandbox Code Playgroud)

msi*_*vri 3

您可能需要编辑匿名身份验证设置。

去:

  1. 服务器管理器
  2. 信息系统
  3. 连接 > 站点 > 您的站点
  4. 单击身份验证 > 启用

此时您可以选择应用程序池标识。

更多详细信息请参见:网站代码无法连接到同一服务器上的肥皂服务

  • 谢谢,我通过使用服务器的IP地址而不是域名解决了这个问题。 (2认同)