Add service reference gives Exception: Unable to connect to remote server

前端 未结 3 1384
北海茫月
北海茫月 2021-01-17 11:48

My WCF service returns result when calling from console application client. However, it\'s showing

Exception: Unable to connect to remote server

相关标签:
3条回答
  • 2021-01-17 12:19

    Have you tried this answer? It sounds like it resolves the kind of issue you're experiencing:

    Web Reference vs. Service Reference

    0 讨论(0)
  • 2021-01-17 12:38

    Try to adjust your bindings for HTTPS and make sure to configure for http also.

    <protocolMapping>
      <!--<add binding="basicHttpBinding" scheme="http"/>-->
      <add binding="basicHttpsBinding" scheme="https"/>
      <add binding="webHttpBinding" scheme="https"     bindingConfiguration="WebBinding"/>
    </protocolMapping>
    
    0 讨论(0)
  • 2021-01-17 12:42

    Issue solved by adding proxy in IIS. :)

    0 讨论(0)
提交回复
热议问题