install-package entityframework corrupt data / FileFormatException problem

Topics: General
Sep 4, 2012 at 11:27 AM

I have logged the following Issue but I have not had any response as yet and wondered if it was in the right place, perhaps someone can help me?

http://nuget.codeplex.com/workitem/2551

Im getting the following error when tying to run 
install-package entityframework

Install-Package : File contains corrupted data.
At line:1 char:16
+ install-package <<<< entityframework
+ CategoryInfo : NotSpecified: (:) [Install-Package], FileFormatException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

I note past issued might have been to do with the cache, which I have cleared
I hope someone can help

Sep 4, 2012 at 12:58 PM

Assume one of the packages in your packages folder is corrupt. It may take you a little while but use nuget.exe and download them to a temporary directory. Then copy them over the existing (you may need to close Visual Studio to copy them over). Make sure you are downloading the same versions of each package.

Then once you have replaced them all, open visual studio and retry your command.

Sep 4, 2012 at 3:17 PM

Here's the original discussion with this - http://nuget.codeplex.com/discussions/272453

Sep 7, 2012 at 9:41 AM

I have now updated that discussion with my issue

http://nuget.codeplex.com/discussions/272453