3

Closed

VS 2012 Update Error - Used by Another Process

description

When I try to upgrade VS 2012 I get the error "The process cannot access the file because it is being used by another process."

LOG:
12/27/2012 7:54:56 AM - Microsoft VSIX Installer
12/27/2012 7:54:56 AM - -------------------------------------------
12/27/2012 7:54:56 AM - Initializing Install...
12/27/2012 7:54:56 AM - Extension Details...
12/27/2012 7:54:56 AM - Identifier : NuPackToolsVsix.Microsoft.67e54e40-0ae3-42c5-a949-fddf5739e7a5
12/27/2012 7:54:56 AM - Name : NuGet Package Manager
12/27/2012 7:54:56 AM - Author : Microsoft Corporation
12/27/2012 7:54:56 AM - Version : 2.2.31210.9045
12/27/2012 7:54:56 AM - Description : A collection of tools to automate the process of downloading, installing, upgrading, configuring, and removing packages from a VS Project.
12/27/2012 7:54:56 AM - Locale : en-US
12/27/2012 7:54:56 AM - MoreInfoURL : http://docs.nuget.org/
12/27/2012 7:54:56 AM - InstalledByMSI : False
12/27/2012 7:54:56 AM - SupportedFrameworkVersionRange : [4.0]
12/27/2012 7:54:56 AM -
12/27/2012 7:54:57 AM - SignedBy : Microsoft Corporation
12/27/2012 7:54:57 AM - Certificate Info : [Subject]
CN=Microsoft Corporation, OU=MOPR, OU=OPC, O=Microsoft Corporation, L=Redmond, S=Washington, C=US

[Issuer]
CN=Microsoft Code Signing PCA, O=Microsoft Corporation, L=Redmond, S=Washington, C=US

[Serial Number]
6115FE48000100000072

[Not Before]
3/26/2012 4:19:05 PM

[Not After]
6/26/2013 4:19:05 PM

[Thumbprint]
81D284D9445B97F949262CF8535FED68A63CE4C1

12/27/2012 7:54:57 AM - Supported Products :
12/27/2012 7:54:57 AM - Microsoft.VisualStudio.Pro
12/27/2012 7:54:57 AM - Version : [10.0]
12/27/2012 7:54:57 AM - Microsoft.VisualStudio.Pro
12/27/2012 7:54:57 AM - Version : [11.0]
12/27/2012 7:54:57 AM - Microsoft.VisualStudio.IntegratedShell
12/27/2012 7:54:57 AM - Version : [10.0]
12/27/2012 7:54:57 AM - Microsoft.VisualStudio.IntegratedShell
12/27/2012 7:54:57 AM - Version : [11.0]
12/27/2012 7:54:57 AM - Microsoft.VisualStudio.VWDExpress
12/27/2012 7:54:57 AM - Version : [10.0]
12/27/2012 7:54:57 AM - Microsoft.VisualStudio.VWDExpress
12/27/2012 7:54:57 AM - Version : [11.0]
12/27/2012 7:54:57 AM - Microsoft.VisualStudio.VPDExpress
12/27/2012 7:54:57 AM - Version : [10.0]
12/27/2012 7:54:57 AM - Microsoft.VisualStudio.VPDExpress
12/27/2012 7:54:57 AM - Version : [11.0]
12/27/2012 7:54:57 AM - Microsoft.VisualStudio.VSWinExpress
12/27/2012 7:54:57 AM - Version : [11.0]
12/27/2012 7:54:57 AM - Microsoft.VisualStudio.VSWinDesktopExpress
12/27/2012 7:54:57 AM - Version : [11.0]
12/27/2012 7:54:57 AM -
12/27/2012 7:54:57 AM - References :
12/27/2012 7:54:57 AM -
12/27/2012 7:54:58 AM - The extension will be upgraded from version 2.1.31002.9028.
12/27/2012 7:55:15 AM - The following target products have been selected...
12/27/2012 7:55:15 AM - Microsoft Visual Studio Ultimate 2012
12/27/2012 7:55:15 AM -
12/27/2012 7:55:15 AM - Beginning to install extension to Microsoft Visual Studio Ultimate 2012...
12/27/2012 7:55:15 AM - Upgrading 'NuGet Package Manager', version 2.1.31002.9028 to version 2.2.31210.9045.
12/27/2012 7:55:16 AM - Install Error : System.IO.IOException: The process cannot access the file because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost)
at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.AtomicallyDeleteFiles(IEnumerable1 filePaths, Boolean justMarkForDeletion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.DeleteDiscoverableFiles(IInstalledExtension extension)
at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.UninstallInternal(IInstalledExtension extension, Boolean forceDelete)
at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.CommitInstalledAndUninstalledExtensions(IEnumerable
1 installedExtensions, IEnumerable1 uninstalledExtensions, IEnumerable1 packComponentChanges)
at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.BeginInstall(IInstallableExtension installableExtension, Boolean perMachine, AsyncOperation asyncOp)
at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.InstallWorker(IInstallableExtension extension, Boolean perMachine, AsyncOperation asyncOp)


I get this same error in 2010 even after the hotfix but I didn't think it had anything to do with the 2012 version. If I close VS and manually go delete the extension folder and then re-install nuget the version will install fine.
Closed Jan 22, 2013 at 5:15 PM by dotnetjunky
Bug reported to VS team.

comments

howarddierking wrote Dec 28, 2012 at 8:05 PM

@JeffHandley, can you please ask Jacques to look at this?