Workaround for 0x8007007e when trying to to locate an instance of Visual Studio

Heath Stewart

We are investigating how a particular rare problem occurs that can prevent clients like VSIXInstaller.exe, vswhere.exe, and others from finding any Visual Studio instance that results in an error similar to the following:

Retrieving the COM class factory for component with CLSID {177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D} failed due to the following error: 8007007e The specified module could not be found. (Exception from HRESULT: 0x8007007E).

This is the CLSID for the Visual Studio Installer query API, and despite being registered the COM server DLL is missing.

Workaround

The easiest way to work around this problem is to repair any instance of Visual Studio. Warning: this will reset your Visual Studio settings:

  1. Open the Visual Studio Installer.
  2. On any instance, click the Repair button. If you do not see a Repair button (perhaps updates are pending, which might also fix this problem), click the More ▼ button then click Repair.

Along with resetting your Visual Studio settings, this can take quite a while to complete. A faster way to repair just that package if you have not disabled the package cache (source is required to reinstall the COM server DLL), is to use the MSI PowerShell module:

  1. Open an elevated PowerShell command prompt (either Windows PowerShell or PowerShell Core).
  2. Type: Install-Module -Scope CurrentUser MSI -Force If you are prompted to install the NuGet provider, please do so. This need only be done once for any number of PowerShell modules installed from the PowerShell Gallery.
  3. Type: Get-MSIRelatedProductInfo '{1571205C-BAD1-4237-BFE6-B77E622C51DB}' | Repair-MSIProduct

As long as the MSI package is cached, this should repair quickly.

More information

Feedback buttonWe did make some improvements in Visual Studio 2017 version 15.6 that greatly reduced the number of occurrences but do still see these on occasion. If the workaround does not resolve your problem, please click the Feedback button in the upper-right corner of the Visual Studio Installer to collect necessary logs and submit feedback to our Developer Community web site.

0 comments

Discussion is closed.

Feedback usabilla icon