VS2010 and proxy settings

CB. picture CB. · Jul 6, 2012 · Viewed 9.2k times · Source

Forgot to mention that I'm using FTP for open web site

I'm working with Visual Studio 2010 Ultimate on a web project. The problem come when I need to work in an office where internet connection is done via a Proxy server. I've tried any kind of suggested changes to devenv.exe.config but using a TCPViewer I can see that any request from devenv.exe aren't done trough the proxy but directly and I can't open the remote website.

It seems that VS2010 doesn't read the configuration setting. Someone had same issue? It's possible to resolve it?

Edit:

The proxy is wingate and this is the part of config I used:

<system.net>
    <defaultProxy useDefaultCredentials="true" enabled="true"> // Tried with/without 'usedefaultCredential' Wingate use  IP matching for authorize connections
        <proxy proxyaddress="http://Myproxyserverip:8888"/>
    </defaultProxy>
    <settings>
        <ipv6 enabled="true"/>
        <servicePointManager expect100Continue="false" /> // Tried with and without this.
    </settings>
</system.net>

Answer

Marcs picture Marcs · Dec 1, 2014

Actually the solution (at least for me) is to set an user wide or system wide environment variable. I set this two envirionment variables:

HTTP_PROXY

HTTPS_PROXY

Here's a screenshot:

environment variables

If VS2010 is already open, close it and reload it so can parse the environment variables.

ps. I'm using cntlm as proxy.