1

Closed

Manage installed package => "Operation failed / Value cannot be null / Parameter name: key"

description

When I try to manage an installed package on the Solution level, e.g. to add it to another Project, I always get the following message box as soon as I click the "Manage" button:

Operation failed

Value cannot be null.
Parameter name: key

After that, all buttons in the package manager GUI get disabled, including Close, and I can't even close the dialog any more (clicking the "X" button in the title bar has no effect). This means that I have to kill my Visual Studio instance and restart it to continue working.
This means that the only way I can add or remove a package through the GUI is on the Project level.

Software configuration:
Visual Studio Premium 2012 11.0.51106.01 Update 1
NuGet 2.2.40116.9051
Windows 7 Professional SP1

EDIT: Attached NuGet.config. Settings are default values.

EDIT2: I never had this issue with Visual Studio 2010.

file attachments

Closed Mar 1, 2013 at 5:05 PM by TomCornelius
Hi, this is the issue tracker for the codeplex site. You may want to post your issue on the individual project's issue tracker page.

comments

dotnetjunky wrote Mar 1, 2013 at 12:53 PM

Can you install our nightly build at http://build.nuget.org/NuGet.Tools.vsix and see if this error is fixed? We made a couple of changes to how we handle packages in the solution and I think it may fix this error.

aegon wrote Mar 1, 2013 at 2:54 PM

Still not working properly with the Nightly, though the behavior is different now.
I can open the "Manage" dialog for a package, check or uncheck projects and confirm with "Ok", but the only thing that happens after clicking "Ok" is that the dialog closes. No changes are being made. In other words, the "Ok" button behaves exactly like the "Cancel" button.

aegon wrote Mar 1, 2013 at 3:00 PM

I'll be happy to provide additional debug information if you tell me how.

aegon wrote Mar 1, 2013 at 5:30 PM

Sorry for accidentally posting to the wrong issue tracker. Re-opened where it belongs: http://nuget.codeplex.com/workitem/3095