网站如果绑定了代理ip,内部跳转的时候,就会报The remote name could not be resolved错误,这个错误很难排查,网上也没有多少可参考的例子

现在记录下解决方法,以备参考:

方法就是在webconfig文件里面添加代理配置:

<system.net>
    <defaultProxy>
      <proxy usesystemdefault="True" proxyaddress="http://x.x.x.x:80" bypassonlocal="True"/>
    </defaultProxy>
  </system.net>


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2021-06-07
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-11
  • 2022-01-18
  • 2021-07-08
  • 2022-12-23
  • 2021-05-06
  • 2021-06-18
  • 2021-09-02
相关资源
相似解决方案