I have recently upgraded from VS2012 RC to RTM, and since the upgrade to RTM, I can no longer access nuget. I receive the following error in the Manage NuGet Packages window.
Check your system environment variables for http_proxy
and https_proxy
. NuGet looks at those first if they exist. If those proxy environment variables begin with https
, NuGet will fail. Fix them and restart your computer (restarting Visual Studio did not work for me).
You can verify this by opening the Package Manager Console:
Get-Childitem env:http_proxy
Get-Childitem env:https_proxy
If you want to quickly get it working without restarting your computer, manually set the proxies in the Package Manager Console:
$env:http_proxy = "http://your.proxy.com:1234"
$env:https_proxy = "http://your.proxy.com:1234"
This also happens if you have a proxy setup in your internet settings.
NuGet VS 2015 ServicePointManager does not support proxies with the https scheme
Problem was not with proxy because the proxy was removed in my case. Therefore the visual studio config file had to be changed. But in other cases the answer can also lie in changing the config file to your situation.
Go to: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
find the config file devenv.exe.config
and edit in administrator mode:
<defaultProxy enabled="false" useDefaultCredentials="true">
<proxy bypassonlocal="True" proxyaddress="http://proxy.somesite.nl" />
</defaultProxy>
setting enabled="false" or adapt the section to your needs.
Restart VS after changes.