Tips:Requested Registry Access is not allowed (Visual Studio 2008)
Requested Registry Access is not allowed (Visual Studio 2008) How to fix it?
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++
source: http://www.texttoolkit.com
December 29, 2009 at 6:33 am
thanks for this tips… very helpfull to me….
January 10, 2010 at 12:04 pm
Tips:Requested Registry Access is not allowed (Visual Studio 2008) .Thanks for nice post.I added to my twitter.
January 22, 2010 at 3:11 pm
I had tried last night so many things just need this one..
Thanks
thank u so much
January 23, 2010 at 7:42 am
Yeah!
Success for windows 7.
Thanks!
April 1, 2010 at 11:07 pm
الف الف شكر
you save my life thanks .it was an astocked
April 1, 2010 at 11:10 pm
الف الف شكر
you saved my life thanks .it was an astocked
April 1, 2010 at 11:20 pm
You’re welcome guys
April 7, 2010 at 5:52 pm
It works! Thanks so much!!!
June 24, 2010 at 10:26 pm
thank you very much, this was just what i needed after trying everything. THANKS
June 30, 2010 at 3:22 am
You are a lifesaver 😀
October 20, 2010 at 5:44 pm
Thanks for your post, very cool ^^
March 9, 2011 at 10:03 am
This didn’t work for me as I couldn’t find the HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 key. I tried the same procedure listed above on the following keys which were in my regedit list.
HKEY_CLASSES_ROOT\VBExpress.vbproj.10.0
and
HKEY_CLASSES_ROOT\VisualStudio.user.10.0
Please help.
March 9, 2011 at 10:06 am
Edit to my post above – I couldn’t find the HKEY_CLASSES_ROOT\VisualStudio.vbproj.10.0 key.
Excuse the error in version. I have installed Visual Basic Express 2010.
March 12, 2011 at 4:13 am
thanks man!! helped a lot, saved alot of time. thanks !!
April 18, 2011 at 10:59 pm
Thanks alot i had this problem and this was what i needed after trying everything and searching on the net it works fine big thanks….
May 28, 2011 at 10:13 am
Did not work for me.
May 28, 2011 at 1:02 pm
Dear Lucid,
Are you sure you’ve followed all the steps correctly as mentioned in the article?
July 23, 2011 at 3:52 am
excelente!!
gracias!!
October 28, 2011 at 6:17 am
It is now running
December 31, 2011 at 1:26 am
wow! God bless u
March 25, 2012 at 5:17 am
Thanks a lot that’s was really helpful &^&
April 5, 2012 at 4:15 pm
Thanks you,very good
May 18, 2012 at 8:51 am
THHHHHNNNNNNKKKKKKK UUUUUUUUUUUUUUUUUUUUUUUUU
U R THE BEST………:)
May 28, 2012 at 7:03 am
Thank you very much
May 29, 2012 at 7:30 pm
thanx a lot..it worked well
July 8, 2012 at 3:30 pm
Thank you so so so so so so much. You’re such a GENIUS! Your instructions are precise and worth it. I’m a 8th grader and I did fix the error, alone — Thanks to you 😀
December 20, 2012 at 7:04 pm
Thanks a lot man. I searched for this solution for so many days, found lots of bogus solution. This one worked like a charm. cheers
March 28, 2013 at 4:25 am
i already try, but can not also, exist way other of maybe to handle this problem? PLEASE
February 24, 2014 at 8:55 pm
Hi, Even I tried this but it did not work for me
February 19, 2015 at 8:31 pm
Thank you so much…