Nuget Package - feed (VSTS) :Exception 'System.AggregateException' thrown when trying to add source

Hussein Salman picture Hussein Salman · May 5, 2016 · Viewed 30.9k times · Source

I have created a new feed with in Package Release hub (VSTS), installed the credentials, then added the package source.

Now, I am using Visual Studio 2015 to install Micrososft.Aspnet.mvc to a project, however it gives the following error:

Exception 'System.AggregateException' thrown when trying to add source
'https://mysite.pkgs.visualstudio.com/DefaultCollection/_packaging/MyLogUtils/nuget/v3/index.json'.
Please verify all your online package sources are available.    

I need to install NuGet packages normally, so I removed the feed from VSTS. However, the problem persists. How can this problem be resolved?

Answer

Eddie Chen - MSFT picture Eddie Chen - MSFT · May 11, 2016

I met this issue today and fix it by following:

If you have delete the feed from VSTS, then you need to delete it from VS\Tools\Options\Nuget Package Manager\Package Sources: enter image description here

If you didn't delete the feed in VSTS and want to use it, sign in with your VSTS team project account from VS upper right corner and restart VS:

enter image description here