aws / aws/aws-toolkit-visual-studio

Error trying to install Toolkit: "System.InvalidOperationException: VSHiveStub.exe failed"

Open
#241 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
135
Forks
37
PR merge metrics
No merged PRs in 30d

Description

**Computer (please complete the following information):**

- Windows Version: 10 Enterprise
- Visual Studio Version: 2019 Enterprise
- AWS Toolkit for Visual Studio Version:

**Install log**
4/21/2022 4:50:26 PM - Microsoft.VisualStudio.Community
4/21/2022 4:50:26 PM - Version : [16.0,17.0)
4/21/2022 4:50:26 PM - ProductArchitecture : x86
4/21/2022 4:50:26 PM -
4/21/2022 4:50:26 PM - References :
4/21/2022 4:50:26 PM - Prerequisites :
4/21/2022 4:50:26 PM - -------------------------------------------------------
4/21/2022 4:50:26 PM - Identifier : Microsoft.VisualStudio.Component.CoreEditor
4/21/2022 4:50:26 PM - Name : Visual Studio core editor
4/21/2022 4:50:26 PM - Version : [16.0,17.0)
4/21/2022 4:50:26 PM -
4/21/2022 4:50:26 PM - Signature Details...
4/21/2022 4:50:26 PM - Extension is signed with a valid signature.
4/21/2022 4:50:26 PM -
4/21/2022 4:50:26 PM - System.InvalidOperationException: VSHiveStub.exe failed: Unknown error
at VSIXInstaller.LocationBasedSKU.SettingsManagerData.get_RegRootHiveOverride()
at VSIXInstaller.LocationBasedSKU.get_RegRootHiveOverride()
at VSIXInstaller.SupportedVSSKU.InitializeSettingsManager()
at VSIXInstaller.SupportedVSSKU.get_Host()
at VSIXInstaller.SupportedVSSKU.CreateExtensionEngine()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at System.Lazy`1.get_Value()
at VSIXInstaller.ExtensionService.GetExtensionEngineForApplicableSKU(ICommandLineData cmdLineData, SupportedVSSKU supportedSKU, IInstallableExtension installableExtension, List`1 applicableSKUs, Boolean isRepairSupported)
at VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
at VSIXInstaller.ExtensionService.ComputeInstallableExtensions(IStateData stateData, Boolean isRepairSupported, Boolean isExtensionPack, IDictionary`2 skuDataMapping, IList`1 installableExtensionsPaths)
at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
at VSIXInstaller.App.Initialize()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

**Any other information**
I am on company VPN while installing toolkit but I tried without VPN as well. Also the same issue coming for VS 2022 toolkit installation.

Contributor guide

Open the contributing guide

Research direction

Review the installation log and VSIXInstaller stack trace, focusing on the VSHiveStub.exe failure and the SettingsManagerData.get_RegRootHiveOverride entry point. Reproduce the problem on the reported Windows 10 and Visual Studio 2019 or 2022 setups, then document the cause and a verified installation fix.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.