26
votes

Using VS 2013 with NuGet Package Manager installed, I can view all Installed packages, but when I pick Updates or Online, I get an endless busy indicator showing "Retrieving information..."

I've verified I have a good connection. I uninstalled/reinstalled NuGet Package Manager.

Any other suggestions?

Thanks

11
It has happened to me many times but it seems to fix itself if I restart VS. As well, I know that if I change what I am searching for via NuGet from Online to Updates that screws it up and stops it from working.Scott Wylie
Switching to VS2015 (from VS2013) fixed it for me. In retrospect, it may have been the act of installing VS2015 that broke nuget in VS2013...Mr. Bungle

11 Answers

49
votes

I'm using VS 2013 and all of suggested solutions has failed. I solved the problem by applying the following method :

  1. Open package manager console in Visual Studio
  2. Type: [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bOR [Net.SecurityProtocolType]::Tls12

This will change the connection security protocol to nuget as specified in this article: Deprecating TLS 1.0 and 1.1 on NuGet.org

6
votes

May be it will help someone. My problem was with Nuget Package Manager. I've just updated its version.

To update Nuget Package Manager you need go to the menu under Tools -> Extensions and Updates -> Updates tab -> Visual Studio Gallery.

4
votes

I encountered the same problem and tried different solutions but none worked! So I am using this workaround.

  1. Go to https://www.nuget.org
  2. Search for the package you want to install, it would show you the command for installing the package.
  3. Open package manager console in VS and run the command (make sure you select the right project). This will install the package for you.

Cheers.

3
votes

For me it was a problem with NuGet not Visual Studio. The problem turns out to be that NuGet does not like proxy settings of any kind. Running a local proxy debugging tool such as Fiddler will break NuGet! You’ll need to turn them off or uninstall them also ensure that the environment variable HTTP_PROXY is removed from your system settings. Also you will need to check your system proxy settings as well and make sure you are not using a proxy.

This has been documented else where and is the problem for a lot of folks out there!

2
votes

The following steps should help:

  1. Open the nuget website
  2. You can select any package but I would suggest EntityFramework
  3. Open your project then select Tools > library package manager > package manager console
  4. paste this into the console: Install-Package EntityFramework -Version 6.4.4 After taking these steps your nuget will work but only for the current project.
1
votes

there is some error in NuGet package manager in VS 2013. It's noticed and fixed by Microsoft, but we are waiting for new update of NuGet.

But there is some more reasons, why you stuck on "Retrieving information". First check your proxy and firewall settings. In my situation, we need to unblock something(it is in my work, so I don't know,what exactly) and after that I saw the updates.

1
votes

I've noticed this problem once I changed versions of Visual Studio. For whatever reason, the Nuget extension breaks during the installation process even though it seems to be installed in Visual Studio. You basically need to reinstall Nuget, and I had to follow the instructions on this link to get things working again:

http://www.paraesthesia.com/archive/2013/07/30/upgrading-nuget-the-process-cannot-access-the-file-because-it.aspx/

1
votes
  1. Open packet manager console in Visual Studio
  2. Type: [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bOR [Net.SecurityProtocolType]::Tls12

its solve my issue.

0
votes

I came across this problem and it would hang for about an hour at times. How I get round it is go to download a package in the Manage Nuget packager and then right click on your project and click clean. The download pops up within 2 -20 seconds.

0
votes

I faced the same issue, tried different solutions but was unable to resolve the issue. Finally, I tried this method and resolve my problem.

  1. Go to the NuGet website: https://www.nuget.org/
  2. Copy the EntityFramework Package link (Latest Version Suggested)
  3. Go to your project in Visual Studio > Tools > NuGet Package Manager > Package Manager Console
  4. Paste copied link into the console and download
0
votes
  1. Open package manager console in Visual Studio
  2. Type: [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bOR [Net.SecurityProtocolType]::Tls12

It works well