Prabhu
Prabhu

Reputation: 13345

Unable to make web request through proxy server

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?

Upvotes: 1

Views: 895

Answers (2)

JWL_
JWL_

Reputation: 829

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

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

Upvotes: 1

AlvinfromDiaspar
AlvinfromDiaspar

Reputation: 6834

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\

Upvotes: 0

Related Questions