get-package returns 404

Jan 12, 2011 at 11:12 PM

Any idea as to why I would keep getting a 404 Not Found in both the 'Add Library Package Reference' dialog and the Package Manager Console? I've removed NuGet and reinstalled it with no luck. Also, I verified that I'm using the latest repository URL (http://go.microsoft.com/fwlink/?LinkID=206669).

If I use the console and do a 'get-package -source http://go.microsoft.com/fwlink/?LinkID=206669' I also get a 404.

I am able to add a repository that points to a network share and that works fine... only the NuGet official repository is giving the 404's. 

Running on VS2010 w/ SP1 beta, Windows 7 64-bit. I am able to hit the url via a browser and can see all the results, so I know it's there and I can actually get to it. I've also made sure that our networking folks aren't doing anything weird with proxies and the like.

Any help is greatly appreciated!

Jan 13, 2011 at 12:01 AM

Can you open Fiddler and try doing 'get-package -source ...' and see what shows up in fiddler?

Jan 13, 2011 at 2:01 PM

Fiddler shows an http 302, but no other request is ever made.

 

HTTP/1.1 302 Found
Cache-Control: private
Content-Length: 162
Content-Type: text/html; charset=utf-8
Expires: Thu, 13 Jan 2011 13:58:49 GMT
Location: http://packages.nuget.org/v1/FeedService.svc/
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Thu, 13 Jan 2011 13:59:48 GMT

Object moved

Object moved to here.

 

 

Jan 13, 2011 at 2:13 PM

Okay, apparently it's something in my profile. I created a new (local) profile and get-package -remote works fine. Where are the local user settings for NuGet stored? Think removing NuGet and deleting the local settings would be worth a shot? Thanks again for any help!

Jan 13, 2011 at 8:45 PM

Okay, I completely removed NuGet and noticed that if left an entry in the GAC, so I removed that, rebooted and then reinstalled the latest from NuGet.org and all is well. Don't know if it was something I did (probably, I'm dangerous like that) or what. I appreciate the help though!


GK