【问题标题】:[EndpointNotFoundException: There was no endpoint listening at[EndpointNotFoundException:没有端点监听
【发布时间】:2014-03-12 16:14:35
【问题描述】:

错误信息: [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>

【问题讨论】:

    标签: web-services asp.net-mvc-4 endpoint


    【解决方案1】:

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

    转到:

    1. 服务器管理器
    2. IIS
    3. 连接 > 站点 > YourSite
    4. 单击身份验证 > 启用

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

    更多详情:A web site code can't connect to a soap service on the same server

    【讨论】:

    • 谢谢,我用服务器的IP地址代替了域名解决了这个问题。
    • 我正在使用启用匿名身份验证的默认网站,但我仍然遇到列出的问题。
    • IP地址对我有用,但接缝不太好,真的希望知道这个问题的“正确”解决方案
    猜你喜欢
    • 1970-01-01
    • 2014-12-05
    • 2014-06-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多