Remember to reset your Experimental hive

If you open and build one of the samples in the Visual Studio 2008 SDK, and see the following error, DON'T PANIC (and don't forget your towel).

Failed to retrieve paths under VSTemplate for the specified registry hive.

This is a build error you will see if the Experimental hive has not been set up for your user account on the machine. To resolve the problem, simply do the following:

  1. From the Start Menu, run Microsoft Visual Studio 2008 SDK -> Tools -> "Reset the Microsoft Visual Studio 2008 Experimental hive"
  2. Wait a few minutes for the process to complete (the command window will disappear when it's done)
  3. Rebuild your project

In Visual Studio 2005 and earlier, the Experimental hive was set up when you installed the SDK.

Starting with the Visual Studio 2008 SDK, package development is per-user by default. The SDK installer will set up the Experimental hive only for the user who actually installed it. If you installed under a different user account than the one you use for development, you will have to "Reset" the hive with your account before you can begin package development.

Comments

  • Anonymous
    March 17, 2009
    Thank you so much for this very useful post.It helped me quickly resolve a problem.
  • Anonymous
    March 22, 2010
    I can't find that option even with the 2008 SDK.