Failed to get location of Visual Studio from registry
I know there are lot of post out there how to get CRM developer tool to get work in Visual studio 2013. But today i got strange issue when i tried to add new workflow class to my SolutionPackage. WHenever i try to create new plugin or workflow , it was throwing as error ” Failed to get location of Visual Studio from registry” .It used to work fine until yesterday.
When i googled with this error , i could not find any post about this error specific to CRM developer tool but someone mentioned this issue is related to registry key mismatch for the visusal studio with the right registry key entry to fix the issue
Copy below text and save it as .reg file and run it to update registry with right values. After running this registry update everything worked fine.
******************************************
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\11.0\Setup\VS]
“ProductDir”=”C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\”
“MSMDir”=”C:\\Program Files (x86)\\Common Files\\Merge Modules\\”
“VS7EnvironmentLocation”=”C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\devenv.exe”
“EnvironmentPath”=”C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\devenv.exe”
“EnvironmentDirectory”=”C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\”
“VS7CommonDir”=”C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\”
“VS7CommonBinDir”=””
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\11.0\Setup\VS\BuildNumber]
“1033”=”12.0″
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\11.0\Setup\VS\Pro]
“ProductDir”=”C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\”
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\11.0\Setup\VS\VSTD]
“ProductDir”=”C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\”
*********************************************************************************************
If above fix did not fix the issue check below settings as well in your machine ..
edit C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe.config,
add the following lines:
***************************************************************************************************
<!– CRM 2013 VS install –>
<dependentAssembly>
<assemblyIdentity name=”Microsoft.Windows.Design.Host” publicKeyToken=”b03f5f7f11d50a3a” culture=”neutral” />
<bindingRedirect oldVersion=”4.0.0.0-4.1.0.0″ newVersion=”4.2.0.0″ />
</dependentAssembly>
<!– /CRM 2013 VS install –>
*****************************************************************************************************************

This was originally posted here.
*This post is locked for comments