Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSHost crash, REGDB_E_INVALIDVALUE loading Specific Project

Whenever I load a solution in Visual Studio with a specific project set as the startup project, I get a VSHost32.exe crash. If I keep on going and launch the application, I get a COMException:

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

With a stacktrace:

at System.Runtime.InteropServices.RuntimeEnvironment.GetDeveloperPath()
at System.AppDomain.SetupFusionStore(AppDomainSetup info)
at System.AppDomain.SetupDomain(Boolean allowRedirects, String path, String configFile)
like image 774
jcelgin Avatar asked Jun 14 '12 03:06

jcelgin


1 Answers

This can occur when a project's config file has developmentMode set, but the machine doesn't have a devPath set.

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

Removing that will fix it up.

like image 85
jcelgin Avatar answered Sep 22 '22 12:09

jcelgin