Error VSHost, REGDB_E_INVALIDVALUE Loading a specific project

Whenever I load a solution in Visual Studio with a specific project specified as a startup project, I get VSHost32.exe crashing. If I continue and run the application, I get a COMException:

{"Invalid value for registry (Exception from HRESULT: 0x80040153 (REGDB_E_INVALIDVALUE))"}

Using stacktrace:

at System.Runtime.InteropServices.RuntimeEnvironment.GetDeveloperPath()
at System.AppDomain.SetupFusionStore(AppDomainSetup info)
at System.AppDomain.SetupDomain(Boolean allowRedirects, String path, String configFile)
+5
source share
1 answer

This can happen if the developmentM parameter is set in the project configuration file, but the devPath is not on the computer.

<runtime>
    <developmentMode developerInstallation="true"/>
</runtime>

Removal to be fixed.

+9
source

All Articles