NuGet gallery gives a server error for my package page

Jul 12, 2011 at 12:56 PM


I have a package hosted in NuGet, but the NuGet Gallery page for that package shows an ASP.NET Server Error. And this is seemingly only the case for my package, all other pages I've checked work.

The page:

The only thing out of the ordinary that I've done is unpublish a certain version shortly after I published it that had a big bug in it that I overlooked. I can't remove that version either as trying to delete the unpublished version gives a Javascript error.

This has been the case for several days now, so I thought I'd report it.

Jul 12, 2011 at 6:03 PM

We’ll look into it. If necessary, may we delete the package so you can re-upload it?


Jul 12, 2011 at 6:16 PM

Ok, I opened a bug here:

Looks like a weird bug in our gallery.

Jul 12, 2011 at 6:17 PM

Thank you. And yeah, deleting if necessary is okay I guess :)

Jul 14, 2011 at 11:38 AM

I just fixed the error on my gallery page. I could still navigate to it by going to a specific version (, which worked. I then saw I had two 'recommended versions': 0.8.4 which I unpublished because it had the bug and 0.8.5 which is the latest version. I'm guessing that's the source of the error, since the stacktrace in the bug report you submitted crashes on a SingleOrDefault, probably to retrieve the 'recommended version' which failed in my case because I had more than one.

I then republished 0.8.4 and deleted it. I couldn't delete it while unpublished as that gave a Javascript error, you can only delete published packages it seems.

The bug is probably caused by unpublishing a recommended version, which does not clear the 'recommended version' flag, or is not removed when a new version is published.

I hope this helps in fixing the problem :)