none
The remote server returned an unexpected response: (407) Proxy Authentication Required. RRS feed

  • 问题

  • 写了一个非常简单的web service, 部署到server上IIS上,在PC上调用web service里面的方法,返回如下错误,

    The remote server returned an unexpected response: (407) Proxy Authentication Required.

    请教如何解决这个问题?谢谢。

    2014年7月10日 8:22

答案

  • Hi JimmyGates,

    In your binding configuration make sure that useDefaultWebProxy is set to true - it will use configuration you have found in IE. In your configuration file add following snippet to ensure default your credentials are used for authentication on the proxy server:

    <system.net>
      <defaultProxy useDefaultCredentials="true" />
    </system.net>

    Best Regards,
    Terry Guo


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="HYPERLINK ">HERE</a> to participate the survey.

    • 已标记为答案 JimmyGates 2014年7月14日 9:28
    2014年7月11日 1:40
    版主

全部回复

  • Hi JimmyGates,

    In your binding configuration make sure that useDefaultWebProxy is set to true - it will use configuration you have found in IE. In your configuration file add following snippet to ensure default your credentials are used for authentication on the proxy server:

    <system.net>
      <defaultProxy useDefaultCredentials="true" />
    </system.net>

    Best Regards,
    Terry Guo


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="HYPERLINK ">HERE</a> to participate the survey.

    • 已标记为答案 JimmyGates 2014年7月14日 9:28
    2014年7月11日 1:40
    版主
  • Hi JimmyGates,

    In your binding configuration make sure that useDefaultWebProxy is set to true - it will use configuration you have found in IE. In your configuration file add following snippet to ensure default your credentials are used for authentication on the proxy server:

    <system.net>
      <defaultProxy useDefaultCredentials="true" />
    </system.net>

    Best Regards,
    Terry Guo


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="HYPERLINK ">HERE</a> to participate the survey.

    Good, this fixs my problem.

    Thanks.


    2014年7月14日 9:29