it may be quite late as an answer, but I tried this problem and found a solution on the msdn page: here is the original message with the message:
I ran into this problem with Visual Studio 2010 and Windows 7. At the moment, I did not find this source of problems, but I found that many Visual Studio users are encountering this. I tried Mike's solution to this problem, and he did more damage than anything else. It even made Visual Studio boot into Shell mode and say that the registration was invalid. Using System Restore, I canceled the changes made using the subinacl tool and the Michaels script (it was probably not designed for Windows 7, which caused the errors in the first place). Being a long-time visual studio user and a pretty good shooter, I knew that the subinal was the right tool to fix the problem, but the script was wrong for my percussion setup. I adjusted the script as follows: (this is a script package)
cd /d "%programfiles% (x86)\Windows Resource Kits\Tools" subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio* /setowner=domain\user subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio* /grant=everyone=f /grant=administrators=f /grant=system=f pause
I tried to include the setowner command with grant commands (on the same line), but that would throw errors all the time. This script is corrected by MY "Requested registry access is not allowed" with Windows 7 and Visual Studio 2010. if you want to try this script command: follow Michael's instructions, but use the script provided in this post and replace "domain \ user" with the appropriate credentials data. You may also need to change the Windows Resource Set Path if you installed it in the diffrnet location or are not using a 64-bit OS. Before using this script, back up your registry.
I hope this helps!
* The original web page was: http://social.msdn.microsoft.com/Forums/en-US/c273b0e1-7f46-4065-afaf-4edf285d2531/vista-wpfapplication-requested-registry-access-is-not-allowed
source share