I am working in a team environment where they have set up NuGet Stream to share some projects. I just recently got latest on one of my projects and noticed that packages.config is updated to refer to a newer version of a particular NuGet package. So I thought let me try to update package from my console so that I do have the latest version and Packacge.Config is pointing to the correct version
Now, VS 2015 NuGet UI does not even show an option to update the package(It has only two options Install and UnInstall). That's fine I can use Console and be done with it. So far so good.
Now, when I run the command to Update-package {packageName}. It throws following error:
Install-Package : An error occurred while retrieving package metadata for '{Package}' from source '{Server}'
So I thought may be it is corrupted. So let me remove the reference from the Package.config and then delete the folder from package and then get the Fresh install. This time I did use the option -verbose. So I Fired the following command:
install-package Uas.AnalysisWorker -verbose
Which in response did throw same error at me:
with this detail:
BadGateway http://Servername/FindPackagesById()?id='{Packagename}' 2262ms
May be the package at the server is corrupted or may be I am missing something else. But I do not want to contact package owner before doing my due diligence to make sure that I am not missing something Trivial.
- Also, on a side note I found some threads suggesting that updating to latest version of NuGet package manager solved their issue. I do have latest Nuget package so that shouldn't be an issue too.
Any ideas?