12

Closed

Restore package error says "An error occured while trying to restore package"

description

In Nuget 1.7, any error while restoring package says "An error occured while trying to restore package. Please try again.". I feel this is rather unintuitive, for many errors trying again won't solve it and I wish we gave additional information (which package, why it failed?)

to repro:
  1. install package from a source with -s in the console, or delete the source
  2. delete "packages" folder
  3. hit "Restore"
"An error occured while trying to restore package. Please try again."
Closed Jul 29, 2013 at 2:08 PM by dotnetjunky
We'll fix this in 2.7

comments

JeffHandley wrote Jan 13, 2012 at 11:57 PM

We should offer more informative error messages. We should also consider this specific scenario and potentially file another bug for handling that case better.

drewnoakes wrote Jul 11, 2012 at 1:12 PM

I see this with NuGet 2.0 when pulling from a repo that doesn't include package contents and am trying to update in VS2010 via the Package Manager Console header area. The absence of a useful error message doesn't make it clear what to try next.

aldion wrote Jul 11, 2012 at 7:46 PM

As a temporary workaround : Rebuild the app, messages from package restore should be in Output->Build.

(note: there's some cases where Restoring from the yellow bar fails while this works, example: http://nuget.codeplex.com/workitem/2048)