Home Section Blog Technology Visual Studio: Requested Registry Access is not allowed
Visual Studio: Requested Registry Access is not allowed PDF Print E-mail
Blog - Technology
Written by Dennis Reinhardt   
Wednesday, 14 October 2009 14:16

I recently upgraded to Windows 7  from XP, which means a clean install.  I had been using Visual Studio 6 on XP and decided to upgrade.  It *looked* like VS 2005 was more complete so I started there.  But I got the error (shown in VS 2008, but it is the same error)

 

 

as soon as I created my first project.  Real helpful, right?  See anything missing?  How about the key they were trying to access.  Dumb.

Anyway, I installed VS 2008 (version 9.0.21022.8 RTM), thinking that this error was corrected.  Many people reported it and Microsoft has simply closed the reports starting it was irreproducable (http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=302366)

There are a variety of solutions out there.  Some of them are very broad brush.  By broad brush, they can run for 2 hours.  There have been many reports of systems being unusable at the end of two hours.  At the end of the discussion, is a fix from "Random Weirdo" that involves registry editing. 

We have had success with this instruction and it looks like there is a single registry key each for Visual Basic or C# that needs to be edited.  On a brand new install, the key has to be created by the Visual Studio installer.  It looks for all the world like Microsoft did not try installing their own Visual Studio on their own Windows 7.

Here are the step-by-step insructions.

1) Exit Visual Studio.  If you do not do that, the registry key will be held open and you cannot edit it.  Exit now.

2) In the Registry Editor, navigate to the key to change.  For Visual Basic, the key is HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 and for C# it is HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0

 

 

 

if you left click the key, you will get this error message.  Click OK to dismiss message box.  This is the problem we are about to fix. 

3) Instead, right click and bring up the context menu. 

 

 

Click Permissions to continue.

4) Dismiss the pointless warning which comes up. 

 

 

5) Click  Add

 

 

6) Click Advanced

 

 

7) Click Find

 

 

8) You can make your own choice whether to allow just yourself. to be done with this annoyance once and for all, I picked Everyone.  Then click OK.

 

 

9) The object selected is shown.  Click OK.

 

 

10) Click Full Control.  The Read box will also be checked.  Click Advanced.

 

 

11) click Owner

 

 

12)  Pick an owner.  I picked myself, rather than Admins generally because I felt it was less likely to fail.

 

 

13) I then clicked Apply to insure that my name showed up as current owner.  You can see that it has in this screen shot as opposed to "Unable to display" in previous step.  Click OK

 

 

14) Click your final OK

 

 

15) ... and the registry view has changed.  Now when we left click or select the HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 key, we see that this is a Visual C# Project file.

 

 

16) Go back to Visual Studio and create your Visual C# project (or Visual Basic project if you applied this to the Visual Basic key).  Some say you need to restart Windows but I did not find it necessary.  If you use both Visual C# andVisual Basic, you must go through this process twice. There is surely a similar process for Visual C++

 

Trackback(0)
Comments (22)Add Comment
0
Thanks
written by user, November 08, 2009
thanks a lot. i couldnt find any solve.but i find it.
0
woooowwvwvwv
written by Murat, December 21, 2009
Thank you very much
long time call you a solution was.
good work
0
Developer
written by Morgan, December 22, 2009
Too many sites i have searched. to many things i have done this is the only one that works! Thanks A lot!!! By the way this solves VS2005 and VS2008 having the same problem on "Requested registry is not allowed"
0
Excellent solution!
written by DaveQC, December 30, 2009
Thanks for posting this! I am sure this saved me hours!

Dave
0
cat
written by MAl, February 09, 2010
THANK YOU IT WORKED!!!!!!!!!!!!!!!!!!!!!
0
You are the best
written by Maverick, February 17, 2010
many many post, many solutions, difficult ...
but you're solution work perfectly in 1 minute.
Thanks
0
You Rock !
written by nInJa, March 02, 2010
I thought I have destroyed my PC, thanks so much guy !
0
you are the best ever!!
written by Cédric, March 06, 2010
TTTTTHHHHHHAAAAAAANNNNNKSKKKSSSSSSS
THANKS!
FOR EVA UR MY FRIEND!
THANKS YOU DONT KNOW HOW IM HAPPY!
0
Thanks!!!!!!!!!!!!!!!!!!!
written by FoxHound, March 16, 2010
smilies/shocked.gif The best! a infinite thanks
0
Well done
written by Mehdi, March 24, 2010
Thank you, very good
0
MS fail us again! Thanks for the info Dennis!
written by binarybasher, March 26, 2010
Many thanks Dennis, good job.
0
Remember to add access to the Launcher CSProj as well
written by Atif, March 28, 2010
It works in 2010 RC when I add access to the Launcher as well.
0
Thanks
written by Lorraine, April 24, 2010
It works. Thanks
0
Problem
written by Kevin, May 23, 2010
Hi, thank you very much for your post.
I did all what you wrote, It's works fine.
Thanks
0
...
written by Javier, May 28, 2010
didn't worked for me :S, i still getting the "request registry key is not allowed"
0
Thanks
written by serkan, June 25, 2010
it is working for VProConsole registry's errors of Symantec BESR 2010. Thanks for your kind share.
0
p90x
written by p90x, July 28, 2010
I totally love this article. I think you could write some other things to make your blog more complete wansantg3lj
0
Thank you
written by Efe, August 28, 2010
It worked for me, thank you very much smilies/smiley.gif
0
In case you have a different version
written by Swayam, August 29, 2010
Aweome smilies/cheesy.gif thanks!
But i notice a general solution for all such problematic versions of Visual Studios. The only thing needed to be changed is the key.
to find the correct key, download http://www.lcibrossolutions.com/spymetools and run a realtime monitor of the registry. Then open your studio , and try creating a new project. wait till error message comes. Now switch to the spymetool program and stop the live monitor and find the key that has FAILED(5). That is your key smilies/smiley.gif
0
DID NOT WORK
written by Bhavya, September 02, 2010
I followed all the steps....changed the permisssions as per the instructions, yet i get the same error.
I have tried uninstalling and reinstalling the setup again and again yet am unable to get rid of this error....
PLEASE HELP.....URGENTLY....:smilies/cry.gif
smilies/cry.gif

smilies/cry.gif
smilies/cry.gif
smilies/cry.gif
0
...
written by Bhavya, September 02, 2010
Did not work for me...
Tried everythin as per the instructions...
PLEASE HELP....UEGENTLY
smilies/cry.gif
smilies/cry.gif
0
Well Done
written by Sudeep, September 06, 2010
You are a life saver mate. May all your wishes come true may u be the most prosperous man, may you have 1000 girlfriends.
For everybody else his method works for VS2010 tried and tested. dont worry just follow his instructions

Write comment

busy
Last Updated on Wednesday, 14 October 2009 16:15
 
Copyright © 2010 TextToolKit. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.