nuget install fails

Jan 6, 2011 at 5:27 PM

I am trying to install nuget on Visual Studio 2010 Premium ver: 10.0.30319.

When I try and install the VSIXInstaller keeps throwing the following error:

The system cannot find the path specified. (Exception from HRESULT: 0x80070003)

Not sure what the problem is. 

I've installed mvc 3.0 which installs the nuget.tools.vsix in C:\Program Files\NuGet

I've tried installing from that and also from the extension manager in Visual Studio.

I've searched online and have not found anything so I'm wondering if anyone here could shed some light on my problem.

I know this isn't a lot to go on but it's all I have.

Does anyone have any info that might help me?

Thnks,

John

Developer
Jan 6, 2011 at 5:57 PM

Can you install any other extensions?

Jan 6, 2011 at 6:08 PM

Yes I have been able to install other extensions.

Developer
Jan 6, 2011 at 6:21 PM

Maybe installing the msi and that failing left your machine in an unclean  state. Check the install locations for traces of nuget and delete them. Then try again.

Jan 6, 2011 at 6:51 PM

Thanks,

I'll give that a try and let you know the results.

Jan 6, 2011 at 8:34 PM

Ok, 

I went through and:

  1. uninstalled mvc 3
  2. cleaned up any references for nuget from the harddrive
  3. removed all other extensions
  4. restarted the computer

nuget still fails to install with the same error.

I'm wondering if I need to go in and clean out all references to it in the registry....

 

 

Developer
Jan 6, 2011 at 8:46 PM
Try installing a build from the CI machine. There's a direct link on the documentation main page.

Sent from my Windows Phone

From: jtencate
Sent: Thursday, January 06, 2011 12:28 PM
To: David Fowler
Subject: nuget install fails [nuget:240739]

From: jtencate

I am trying to install nuget on Visual Studio 2010 Premium ver: 10.0.30319.

When I try and install the VSIXInstaller keeps throwing the following error:

The system cannot find the path specified. (Exception from HRESULT: 0x80070003)

Not sure what the problem is.

I've installed mvc 3.0 which installs the nuget.tools.vsix in C:\Program Files\NuGet

I've tried installing from that and also from the extension manager in Visual Studio.

I've searched online and have not found anything so I'm wondering if anyone here could shed some light on my problem.

I know this isn't a lot to go on but it's all I have.

Does anyone have any info that might help me?

Thnks,

John

Jan 9, 2011 at 10:17 PM
Edited Jan 10, 2011 at 12:18 PM

David,

I was unable to get the extension to install.

I even completely uninstalled Visual Studio 2010 and re-installed it and still had the same problem after the re-install.

I did try a manual install by copying the contents of the .visx file into:

%LocalAppData%\Microsoft\VisualStudio\10\NuGet.Tools

This got NuGet to show up in the extension manager and I enabled it from there but I think it still is not installed correctly due to the fact that "Library Package Manager" does not show up in the Tools drop down.

Any Ideas?

-John

p.s.

I did run Visual Studio with logging and the only thing I"m seeing in the activity log is:

Missing folder or file during PkgDef scan
          C:\Program Files\Microsoft Visual Studio 10.0\\Common7\IDE\devenv.admin.pkgdef  

HR: 80030002

I did have the Visual Studio 2010 CTP running on this machine at one time. I'm wondering if something stuck around from that install that is interfering, say in the registry. I did do a complete uninstall of the CTP before installing the current version for what its worth.

 

Jan 17, 2011 at 1:48 PM

Ok,

after beating my head against the proverbial wall for two weeks, I finally tracked down the culprit. My 'My Documents' folder on my machine had been re-mapped to a network share at some point in the past and this seems to have been the reason for why nuget could not install. It makes sense if you think about it. Once I did some registry editing to get 'My Documents' to point back to the C: drive where it should be, I was able to successfully install nuget.

 

Thanks to dfowler for all his help!

-John

Developer
Jan 17, 2011 at 7:28 PM

Glad you resolved the issue!

Aug 25, 2011 at 1:03 PM

So, what will happen after install when the "my documents" folder is moved back to the network share?

Aug 25, 2011 at 1:21 PM

Not sure, you'd have to test it and see, knowing that you might have to revert "My Documents" back to your C: drive.

 

-John

Aug 25, 2011 at 2:34 PM

But what have I do if re-mapping of My Documents folder is company infrastructure policy and I can do nothing with that?

Aug 25, 2011 at 3:06 PM

I wonder if the reason that causes issues with NuGet but not most other VS extension is that NuGet installs as admin, whereas most don't. Just a theory.

But note that NuGet normally installs to "\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager", and not under My Documents, so there is a still a mystery here.

Aug 31, 2011 at 9:39 PM

Possibly a candidate for a loadFromRemoteSources fix? See http://msdn.microsoft.com/en-us/library/dd409252(VS.100).aspx - I'd imagine you'd have to modifiy devenv.exe.config in VS's install directory.

Dec 1, 2011 at 11:31 AM

01.12.2011 16:26:45 -     Version         : 1.5.20902.9026
01.12.2011 16:26:45 -     Supported Visual Studio Editions :
01.12.2011 16:26:45 -         Version : 10.0
01.12.2011 16:26:45 -             Pro
01.12.2011 16:26:45 -             IntegratedShell
01.12.2011 16:26:45 -             VWDExpress
01.12.2011 16:26:45 -             VPDExpress
01.12.2011 16:26:45 -         Version : 11.0
01.12.2011 16:26:45 -             Pro
01.12.2011 16:26:45 -             IntegratedShell
01.12.2011 16:26:45 -             VWDExpress
01.12.2011 16:26:45 -             VPDExpress
01.12.2011 16:26:45 -     Supported Isolated Shells :
01.12.2011 16:26:45 -     References      :
01.12.2011 16:26:45 - Searching for applicable products...
01.12.2011 16:26:45 - Found installed product - Microsoft Visual Studio 2010 Ultimate
01.12.2011 16:26:45 - System.IO.DirectoryNotFoundException: The system cannot find the path specified. (Exception from HRESULT: 0x80070003)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.VisualStudio.Settings.ExternalSettingsManager.GetScopePaths(String applicationPath, String suffixOrName, Boolean isLogged, Boolean isForIsolatedApplication)
   at Microsoft.VisualStudio.Settings.ExternalSettingsManager.CreateForApplication(String applicationPath)
   at VSIXInstaller.App.GetExtensionManager(SupportedVSSKU sku)
   at VSIXInstaller.App.GetExtensionManagerForApplicableSKU(SupportedVSSKU supportedSKU, IInstallableExtension installableExtension, List`1 applicableSKUs)
   at VSIXInstaller.App.InitializeInstall()
   at VSIXInstaller.App.OnStartup(StartupEventArgs e)

May 7, 2012 at 7:14 AM

I also faced the similar problem and got resolved after uninstalling nuget package manager from Extention manager and reinstall after restarting visual studio.

May 7, 2012 at 7:17 AM

Happy you. I was unable to fix in similar way. Only unzipping and copying files manually.

Aug 9, 2013 at 6:12 PM
We have My Documents redirected to a mapped network drive (home drive).

My work around is to open a command prompt with Run As Administrator and net use the network drive to the proper path.