NuGet upgrade issue

27,276

Solution 1

This is documented on our Known Issues page: http://docs.nuget.org/docs/reference/known-issues

There's two reasons why you might run into this issue. You've installed an unsigned or wrongly signed version of NuGet. For example, if you grab a build off of our continuous integration server (http://ci.nuget.org/) or if you installed one of our previous CodePlex releases.

There's another issue affecting some users of Windows XP or Windows 2003 where it appears the certificate authority on the machines are incorrectly reporting the certificate as not valid. We're still investigating this issue.

Solution 2

  1. Close all visual studio 2010 instances.
  2. Open visual studio again as administrator
  3. Go to "Tools" > "Extension Manager"
  4. Uninstall NuGet
  5. Install NuGet again.

if you are not able to uninstall it go to:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager

and remove this folder. deleting this is at your own risk!

Solution 3

From NuGet page on VS Gallery website:

"Review current release notes/known issues on the NuGet Docs site, including details and solution for about a common upgrade failure (Visual Studio 2010 SP1 Hotfix available)"

Solution 4

I uninstalled via Tools | Extension Manager, then was able to install successfully. If I had read Hanselman's post a little more carefully, I would have realized 1.0 doesn't play nice.

Share:
27,276

Related videos on Youtube

gfrizzle
Author by

gfrizzle

C#, VB, ASP.NET, MVC, LINQ, HTML, jQuery, CSS, WCF, etc. I know PowerBuilder too, but with luck I'll never have to go back... #SOreadytohelp

Updated on July 05, 2022

Comments

  • gfrizzle
    gfrizzle almost 2 years

    I have the version of NuGet that comes with MVC3 (1.0), but when I try to upgrade to the latest version (currently 1.4) it failes and I get this in the log file:

    6/27/2011 1:25:08 PM - VSIXInstaller.SignatureMismatchException: The installed version of 'NuGet Package Manager' is signed, but the update version has an invalid signature. Therefore, Extension Manager cannot install the update. at VSIXInstaller.Common.VerifyMatchingExtensionSignatures(IInstalledExtension installedExtension, IInstallableExtension updateExtension) at VSIXInstaller.InstallProgressPage.BeginInstallVSIX(SupportedVSSKU targetAppID)

    6/27/2011 1:25:08 PM - Install Error : VSIXInstaller.SignatureMismatchException: The installed version of 'NuGet Package Manager' is signed, but the update version has an invalid signature. Therefore, Extension Manager cannot install the update. at VSIXInstaller.Common.VerifyMatchingExtensionSignatures(IInstalledExtension installedExtension, IInstallableExtension updateExtension) at VSIXInstaller.InstallProgressPage.BeginInstallVSIX(SupportedVSSKU targetAppID)

    6/27/2011 1:26:27 PM - VSIXInstaller.SignatureMismatchException: The installed version of 'NuGet Package Manager' is signed, but the update version has an invalid signature. Therefore, Extension Manager cannot install the update. at VSIXInstaller.Common.VerifyMatchingExtensionSignatures(IInstalledExtension installedExtension, IInstallableExtension updateExtension) at VSIXInstaller.InstallProgressPage.BeginInstallVSIX(SupportedVSSKU targetAppID)

    I even tried uninstalling NuGet (via Add or Remove Programs) and installing 1.4 manually, but I inexplicably get the same message. Any idea what I'm doing wrong?

    • Matthew Lock
      Matthew Lock over 9 years
      There's something deeply ironic about a program that is designed to update packages not being able to update itself, and not just once, but for years and years.
  • Jason Short
    Jason Short about 12 years
    I sometimes forget that VS needs to run as Admin for some operations. My uninstall was greyed out, Run as Admin resolved it. Thanks.
  • juFo
    juFo about 12 years
    Yes I had the same problem at first :-)
  • Thomas Levesque
    Thomas Levesque about 12 years
    Any update regarding this issue on Windows XP? The update always fails, I have to uninstall and reinstall Nuget every time... On my Windows 7 machine it works fine.
  • Baljeetsingh
    Baljeetsingh almost 12 years
    first uninstalled from Add remove and then (thanks to juFo) from visual studio extention manger. only then problem solved.
  • afreeland
    afreeland over 11 years
    I wish every fix was this easy =)
  • Alan Alcock
    Alan Alcock over 11 years
    Worked as smoooth as an old cat in a hammered, velvet, smoking jacket, sipping a 27 year old Laphroaig from a Glencairn whiskey glass, with the reassuring sound of a crackling fire in the background.
  • rsenna
    rsenna about 11 years
    02/28/2013 and I have this issue again, upgrading to version 2.2.40116.9051. Uninstalling and re-installing fixed it.
  • Matthew Lock
    Matthew Lock about 11 years
    Make this the accepted answer. The actual accepted answer is useless.
  • Matthew Lock
    Matthew Lock about 11 years
    Why not just add a confirmation dialog like a browser where you can choose to accept the invalid certificate?
  • kiprainey
    kiprainey about 10 years
    @MatthewLock, you are correct. Saying 'This is a known issue' does nothing to help someone resolve the problem. This answer describes precisely the steps one needs to follow to fix this issue.
  • Csaba Toth
    Csaba Toth about 10 years
    I use Windows 7 Prof 64 bit, and VS 2010 Premium and have this issue.
  • TonyG
    TonyG over 9 years
    It's 2014 and I just had this issue with VS2010 over Windows 8.1 trying to upgrade v2.5 to 2.8. Yes, VS needs to be run as administrator, and yes an update fails but uninstall/re-install work great.
  • Henrik
    Henrik almost 9 years
    Windows 7 Pro, VS 2010 Pro, can still get this problem, when trying to update NuGet, from NuGet, from version 1.2.20325.9034. to version 2.8.60318.667
  • Eric Milliot-Martinez
    Eric Milliot-Martinez over 8 years
    @MatthewLock is correct. Stackoverflow is about actually resolving problems, although knowing why the error occurred can be helpful, it's not the main purpose of this site.
  • f470071
    f470071 about 7 years
    This hotfix is not available anymore! Anybody have a working link to download?
  • Dmitry Pavlov
    Dmitry Pavlov about 7 years
    @f470071 I have updated the hotfiх link for you in my answer above.