I am trying to use visual studio community behind a proxy, but I keep getting an error.
I have added the below to D:\myVisualStudioInstall\Common7\IDE\devenv.exe.config
<system.net>
<settings>
<ipv6 enabled="false"/>
<defaultProxy useDefaultCredentials="true" enabled="true">
<proxy bypassonlocal="true" proxyaddress="http://myProxy.com:8080" />
</defaultProxy>
</settings>
</system.net>
And I get the error at start up:
Unrecognized element 'defaultProxy'. (C:\Users\me\AppData\Local\Microsoft\VisualStudio\14.0\devenv.exe.config line 1304)
Where have I gone wrong here? Everything I find online tells me that defaultProxy should be the name of this element, but maybe for the community edition there is some difference? I have already checked my credentials in the Windows Credentials Manager and it seems to work as IE isn't prompting me for them anymore.
Thanks
The defaultProxy
element needs to sit directly under system.net
, not inside settings
. Move it there and it will work.