File contains corrupted data.
We have seen this in the past when trying to download items, and it always turned out we had a local package corrupted. This is one of my favorite errors because it is so helpful in determining which package is corrupted. ;)
This error occurs the minute you open the PM console. If you try to get-package (which is local) you get:
Get-Package : File contains corrupted data.
At line:1 char:12
+ get-package <<<<
+ CategoryInfo : NotSpecified: (:) [Get-Package], FileFormatException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.GetPackageCommand
I'm chalking this up to sometimes these things happen. However I would like for NuGet to tell me what file is corrupted if possible to save on troubleshooting time in the future.