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.
A very late answer, but I've been getting the exact same message when restoring Nuget packages in VS 2015. It seems that last time I restarted my machine I didn't stop Fiddler, and Fiddler seems to have left something in a funny state. When I started and exited from Fiddler the issue went away.
The solution is in this answer:
Visual Studio 2010 nuget error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel
The problem is related to a bad SSL cert on the default Nuget package source.
I got this just by having Fiddler installed. I tried starting it and quitting to be sure it wasn't running but still couldn't get Nuget to work. There must be some other hooks left.
I also faced the same issue for that I just closed my fiddler and restarted Visual Studio to solve the problem
I started getting this in VS2015 on one of my machines. I had an additional package feed on myget which constantly asked me for credentials and failed even when entering correct credentials. What helped me was clearing the nuget cache and config by deleting these two nuget folders:
After that I restarted Visual Studio and added my custom package source again.
I am not sure what happened in my nuget usage history but I end up stuck using proxy for my development machine. to make it work.
1- open fiddler
2- goto %AppData%\NuGet\NuGet.config
Package sources
<packageSources>
<add key="nuget http" value="http://www.nuget.org/api/v2/" />
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
</packageSources>
3- config
<config>
<add key="HTTP_PROXY" value="http://127.0.0.1:8888" />
</config>
4- profit.