开发者

Unable to make web request through proxy server

开发者 https://www.devze.com 2023-01-07 04:23 出处:网络
My sharepoint webpart is throwing an error when calling HttpWebRequest.GetRequestStream when the request is made through a proxy server.The error is \"unable to connect to the remote server.\"The clie

My sharepoint webpart is throwing an error when calling HttpWebRequest.GetRequestStream when the request is made through a proxy server. The error is "unable to connect to the remote server." The client's machine (where this is failing) is set to use a specific proxy server (Use proxy server for your LAN) on IE settings.

Do I need to add any proxy setting in the config to get this to work?

Also, what's the easiest way to reproduce my client's scenario--how can 开发者_如何转开发I add a proxy on my end?


You can try to set autodetect to false in web.config

   <system.net>
      <defaultProxy>
        <proxy autoDetect="false" />
      </defaultProxy>
   </system.net>


Check the Sharepoint log to get a detailed error description.

Usually this can be found here: C:\program files\common files\microsoft shared\web server extensions\12\LOGS\

0

精彩评论

暂无评论...
验证码 换一张
取 消