none
Encountered an error updating a extension via the Extensions and Update dialog.

    Question

  • I was attempting to update an extension via Visual Studio 2015's Extensions and Update dialog. While updating the GitHub Extension for Visual Studio I got the following error:

    Install Error : System.IO.IOException: The process cannot access the file because it is being used by another process.

    I clicked on the "View Installation Log" hyperlink got the following log entry:

    1/9/2017 11:04:47 AM - Microsoft VSIX Installer
    1/9/2017 11:04:47 AM - -------------------------------------------
    1/9/2017 11:04:47 AM - Initializing Install...
    1/9/2017 11:04:47 AM - Extension Details...
    1/9/2017 11:04:47 AM -  Identifier         : c3d3dc68-c977-411f-b3e8-03b0dccf7dfc
    1/9/2017 11:04:47 AM -  Name               : GitHub Extension for Visual Studio
    1/9/2017 11:04:47 AM -  Author             : GitHub, Inc
    1/9/2017 11:04:47 AM -  Version            : 2.1.1.5
    1/9/2017 11:04:47 AM -  Description        : A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
    1/9/2017 11:04:47 AM -  Locale             : en-US
    1/9/2017 11:04:47 AM -  MoreInfoURL        : https://visualstudio.github.com/
    1/9/2017 11:04:47 AM -  InstalledByMSI     : False
    1/9/2017 11:04:47 AM -  SupportedFrameworkVersionRange : [4.5,)
    1/9/2017 11:04:47 AM -
    1/9/2017 11:04:48 AM -  SignatureState     : ValidSignature
    1/9/2017 11:04:48 AM -  SignedBy           : GitHub, Inc.
    1/9/2017 11:04:48 AM -  Certificate Info   :
    1/9/2017 11:04:48 AM -   -------------------------------------------------------
    1/9/2017 11:04:48 AM -   [Subject]       : CN="GitHub, Inc.", O="GitHub, Inc.", L=San Francisco, S=California, C=US
    1/9/2017 11:04:48 AM -   [Issuer]        : CN=DigiCert SHA2 Assured ID Code Signing CA, OU=www.digicert.com, O=DigiCert Inc, C=US
    1/9/2017 11:04:48 AM -   [Serial Number] : 0EBDAA3F3A6BB14A964AF71ECC5E7C40
    1/9/2017 11:04:48 AM -   [Not Before]    : 1/13/2016 6:00:00 PM
    1/9/2017 11:04:48 AM -   [Not After]     : 1/18/2019 6:00:00 AM
    1/9/2017 11:04:48 AM -   [Thumbprint]    : C032DB9DCF24881728662DEE6895F243A313C44B
    1/9/2017 11:04:48 AM -
    1/9/2017 11:04:48 AM -  Supported Products :
    1/9/2017 11:04:48 AM -   Microsoft.VisualStudio.Community
    1/9/2017 11:04:48 AM -    Version : [14.0]
    1/9/2017 11:04:48 AM -
    1/9/2017 11:04:48 AM -  References         :
    1/9/2017 11:04:48 AM -   -------------------------------------------------------
    1/9/2017 11:04:48 AM -   Identifier   : Microsoft.VisualStudio.MPF.14.0
    1/9/2017 11:04:48 AM -   Name         : Visual Studio MPF 14.0
    1/9/2017 11:04:48 AM -   Version      : [14.0,)
    1/9/2017 11:04:48 AM -   MoreInfoURL  :
    1/9/2017 11:04:48 AM -   Nested       : No
    1/9/2017 11:04:48 AM -
    1/9/2017 11:04:48 AM - Signature Details...
    1/9/2017 11:04:48 AM -  Extension is signed with a valid signature.
    1/9/2017 11:04:48 AM -
    1/9/2017 11:05:06 AM - The extension will be upgraded from version 2.0.14.4.
    1/9/2017 11:05:08 AM - The following target products have been selected...
    1/9/2017 11:05:08 AM -  Microsoft Visual Studio Enterprise 2015
    1/9/2017 11:05:08 AM -
    1/9/2017 11:05:11 AM - Beginning to install extension to Microsoft Visual Studio Enterprise 2015...
    1/9/2017 11:05:11 AM - Upgrading 'GitHub Extension for Visual Studio', version 2.0.14.4 to version 2.1.1.5.
    1/9/2017 11:05:13 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(IEnumerable`1 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, IEnumerable`1 uninstalledExtensions, IEnumerable`1 packComponentChanges)
       at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.BeginInstall(IInstallableExtension installableExtension, Boolean perMachine, AsyncOperation asyncOp, Boolean enforceCertificateCheckForUpgrade)
       at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.InstallWorker(IInstallableExtension extension, Boolean perMachine, AsyncOperation asyncOp, Boolean enforceCertificateCheckForUpgrade)

    I've tried various fixes but have not been able to resolve this issue.

    Any help would be appreciated.

    Thanks,

    Steve Miller

    Monday, January 09, 2017 5:34 PM

All replies

  • Hi Steve Miller,

    Welcome to the MSDN forum.

    Refer to your description and the error message, I found some similar issues and please have a try with the following:

    1. Run VS with safe mode: open an administrative CMD window and navigate to C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE and run these commands: devenv.exe /safemode, then try to update it again.

    2. Please have a look at this blog and try to remove the extension folder of GitHub, there should a lot of randomly named folders under C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions(backup it before any modification), you can search the key word like ‘GitHub’ and confirm the related GitHub extension installation folder. Then reopen VS as administrator and install the GitHub extension again. If removed the GitHub extension folder not works, please try to rename the whole extension folder like the blog describes and try to reinstall the nuget manager using the standalone installer and test it again.

    3. Change permissions on the above C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions folder to give everyone full control and update the extension again.

    BTW, if you are using the McAfee software, you can also have a look at this.

    Best regards,

    Sara


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, January 10, 2017 7:56 AM
    Moderator
  • Hi Steve,

    Sorry to trouble you again, does your issue is solved or not? If not, please feel free to let me know.

    If it is solved, could you please share your solution in here, that will help other community members who meet the same or similar issue, thank you for your understanding.

    Best regards,

    Sara


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, January 16, 2017 9:03 AM
    Moderator