Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Visual Studio 2017 Behind Corporate Proxy

Pretty simple problem. I'm unable to install VS 2017 RC behind an NTLM corporate proxy. I have tried running it through fiddler and fiddler + cntlm with no luck.

I have also tried creating .exe.config files for the outer (vs_enterprise.exe) and inner (vs_setup_bootstrapper, vs_installer and vs_installershell) files.

In all cases it doesn't look like the installer is trying to connect anywhere and in the few cases when it does connect, even when it gets a '200' with some data I still get a "You may not be connected to a network" error.

I'm sure that fiddler and cntlm are both working as I use them for my node/npm tools.

I don't have any 'safe' machines outside the firewall so I can't create the download there and pull it here.

Can anybody suggest any other ways of installing the software?

like image 700
user281921 Avatar asked Jan 16 '17 15:01

user281921


2 Answers

if you add

<system.net>
   <defaultProxy useDefaultCredentials="true" >
   </defaultProxy>
</system.net>

to the bottom of your machine.config in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config and Framework64 then this should fix it. Also fixed my problems syncing to VSTS

like image 113
I3enners Avatar answered Nov 24 '22 13:11

I3enners


The I3enners answer is correct but if you are behinde a company proxy probrably you need to add user,password and domain on the proxy addess like this:

<system.net>
  <defaultProxy enabled="true" useDefaultCredentials="true">  
    <proxy bypassonlocal="True" proxyaddress="http://domain%5Cusername:password@youproxyaddress:portnumber" />
  </defaultProxy> 
</system.net>

The '%5C' is the excape for '' . Put the code to the bottom of your machine.config in

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config and C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config

like image 38
Nicola Avatar answered Nov 24 '22 13:11

Nicola