2014-03-12 67 views
4

錯誤消息: [EndpointNotFoundException:在「Link/MobileMotivation.asmx」處沒有可以接受消息的端點偵聽。這通常是由不正確的地址或SOAP操作引起的。有關更多詳細信息,請參見InnerException(如果存在)。][EndpointNotFoundException:沒有端點正在偵聽

這是一個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> 

回答

3

您可能需要編輯匿名身份驗證設置。

轉到:

  1. 服務器管理器
  2. IIS
  3. 連接>站點> YourSite
  4. 點擊驗證>啓用

在這一點上,你可以選擇應用程序池標識。

更多細節在這裏:A web site code can't connect to a soap service on the same server

+1

謝謝,我通過使用服務器而不是域名的IP地址解決了這個問題。 – Sporule

+0

我使用默認網站啓用匿名身份驗證,但我仍然有列出的問題。 – mbomb007

相關問題