FIX: Requested Registry Access is not allowed (Visual Studio 2008)

Symptom: in Visual Studio 2008, you attempt to add a new WebContentForm and associate it with a MasterPage. You receive an error dialog "Requested Reqistry Access is not allowed".

Don't ask me what caused this; I'm guessing that the registry keys involved had their access denied due to removal of a previous version of Visual Studio, leaving the new guy (Visual Studio 2008) in the lurch.

Here's the fix:

Download "subinacl" here. This is a command-line tool that enables administrators to obtain security information about files, registry keys, and services, and transfer this information from user to user, from local or global group to group, and from domain to domain.

After installing subinacl.exe (it will be in the C:\Program Files\Windows Resource Kits\Tools folder.), drop to a command prompt and run the following batch file, which you have saved in the same folder with the filename "FIX.bat":

subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=system=f

BAM! All fixed! Have fun.

Comments

  1. Anonymous3:32 PM

    Works great on Vista!

    You did all the hard work :)

    ReplyDelete
  2. Anonymous7:02 PM

    Thank you... you saved me

    ReplyDelete
  3. Anonymous7:31 PM

    Didn't work for me. I still get the same message when I try to open a new project.

    ReplyDelete
  4. Anonymous7:55 PM

    I just posted a few minutes ago that it didn't work for me. However, I found this, and now it works: subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f
    subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
    subinacl /subdirectories %SystemDrive% /grant=administrators=f /grant=system=f
    subinacl /subdirectories %windir%\*.* /grant=administrators=f /grant=system=f

    ReplyDelete
  5. thks! great solution :)

    ReplyDelete
  6. thanks, also for my Vista Premium edition the second solution is perfect!

    ReplyDelete
  7. Anonymous3:57 AM

    This works. The second FIX worked for me on Vista. Let it run and VS will not have the issues anymore. I can't say how much I am thankful for finding this fix. THANKS!!!

    ReplyDelete
  8. Anonymous3:01 AM

    CLOSE ALL COPIES OF VS2008.

    Download and Install SubInACL (AS ADMINISTRATOR)

    Create bat file, with the lines provided above. Close it. Run bat (as administrator if your not an admin).

    Works flawlessly on Vista Ultimate SP1 + VS 2008 Std installed ontop of VB/VWD 2008 Express Remenants.

    ReplyDelete
  9. Anonymous7:34 PM

    I love you man!!!!!!1 You are great!!!!!!!!!!!!!! You save my life with this article!! XD Thank's a lot!!!!

    ReplyDelete
  10. working great for me, thank you very much.

    ====================
    http://tvradionet.com

    ReplyDelete
  11. Anonymous11:56 AM

    The 2nd solution looks like it changes the permissions on everything in the Registry. Is that the case?

    I wanted something specific to VCSExpress, so I looked in the Registry for references to it. There were about 20 or so entries all of which said Access Denied when clicked.

    However, running a batch file with these statements

    subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=administrators=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=users=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=system=f

    gave access to the csproj entry.

    Attempting to create a project in VCSEXpress still doesn't work, so I guess I'll have to run the same subinacl command against ALL relevant entries. Can a wildcard be used?

    ReplyDelete
  12. Anonymous11:44 AM

    Most Excellent!!!

    Thanks a bunch.

    ReplyDelete
  13. The solution proposed by Peter didn't run on my computer, but someone from Microsoft helped me.

    Look at the 2nd Gilles TOURREAU's answer. You just need to change something in the registery.

    Have a look at : http://forums.microsoft.com/MSDN-FR/ShowPost.aspx?PostID=3457523&SiteID=12&mode=1

    ReplyDelete
  14. Anonymous3:25 AM

    You've saved my life... thanks

    ReplyDelete
  15. Anonymous12:42 AM

    Does not work with registries in Windows x64 versions.

    ReplyDelete
  16. Anonymous10:32 AM

    I Allowed to Administrator, Users, and System the whole HKEY_CURRENT_USER using the regedit GUI. Now I can view all keys that I can't see before. The problem is that the issue keeps on, when i create a new project, it saind "Requested registry access is not allowed" (Important data: with this modification, the error message appears in English [At the begining, appears in Spanish if you have vista in spanish])
    Other ideas???

    OS:Vista Busisness
    App: Visual Studio 2008
    150 more applications installed.
    VS2008 worked with the same configuration before format mi PC.

    ReplyDelete
  17. Anonymous3:17 AM

    thank you, very useful.

    ReplyDelete
  18. Anonymous5:51 PM

    Thanks a lot it worked.

    ReplyDelete
  19. Anonymous1:14 PM

    very special thanks to you, !!! youknow, I think it is a shame for microsoft because they forgot to test their VS product on Windows Vista !! haha , but thanks any way, it works now !! :D

    ReplyDelete
  20. Anonymous3:45 PM

    VERY VERY VERY thanks form ISTANBUL,TURKEY!

    this was my big problem. Thanks a lot my firend :D

    Çok sevaba girdin adamım ;)

    ReplyDelete
  21. Anonymous3:52 PM

    thanks a bunch. the 2nd suggestion worked!!!

    ReplyDelete
  22. Anonymous9:58 PM

    woot!! it works, the only problem is i got more then 200k files in the registry

    ReplyDelete
  23. Anonymous7:28 AM

    Doesn't work for me. I don't have a fix.bat file and when I run the program, it flashes into a cmd screen for about half a second then returns. I try running in administrator but it doesn't work. How do I make this work im getting frustrated!!!! :( >-(

    ReplyDelete
  24. For those who are lost. To create the batch file, open notepad and copy and paste the above lines.

    Then save the file as fix.bat in the C:\Program Files\Windows Resource Kits\Tools folder.

    When you run subinacl.exe, a dos box will open and then close.

    After that, open command prompt (Start, type cmd, right click 'cmd' and run as administrator).
    At the command prompt type:
    cd C:\program files\windows resource kits\tools (hit 'enter')

    fix.bat (hit 'enter')

    The program will take a while to run. When it is finished you can run VS 2008.

    BTW, the second fix worked for me.
    Thx fellers!

    ReplyDelete
  25. Anonymous10:40 PM

    neither worked for me. All the registries report that they failed.

    am i missing something?

    -I installed subinacl
    -created "fix.bat" with 2nd solution where subinacl is found.
    -ran subinacl (to test)
    -ran cmd prompt under Admin and cd'd the folder and loaded the fix.bat file.

    -it goes through 300,000+ registries before restarting the whole process over.

    32bit vista
    compaq presario F700
    1.9ghz Athlon 64 X2.

    ReplyDelete
  26. Anonymous2:49 PM

    Wow! Thank you very much!!!

    ReplyDelete
  27. Anonymous9:04 AM

    you also need to adjust the .sln, .vcs ,.vbz etc entries to get it to work...

    ReplyDelete
  28. I just used this line to get the VSEXPRESS issue corrected
    subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f

    Darrell

    ReplyDelete
  29. Anonymous10:37 AM

    yay it worked!!! =) coool! thanks a lot guys.

    ReplyDelete
  30. Anonymous1:04 AM

    There are a lot of posts on this subject with many "broad stroke" fixes, but they all cause trouble because of their scope. I have narrowed it down to two registry keys(after several hours of trial and error). I used Acronis TrueImage Home 11's Try&Decide Feature to quickly un-do changes to my system. I am using Visual C# Express Edition 2008, on Vista Business Edition x64. Full Visual Studio may be different.

    Download and install "subinacl" from Microsoft.

    Create a batch file with just the two lines below":
    (You are granting full permissions to the "administrators", and "system" groups and read-only permissions to the "users" group.)

    Save the file as "fix.bat" in the install directory that "subinacl" software was installed in (C:\Program Files (x86)\Windows Resource Kits\Tools)**
    **32-bit versions of windows will probably be located at (C:\Program Files\Windows Resource Kits\Tools).
    ------------------------------------------------------------------------------


    subinacl /subkeyreg HKEY_CLASSES_ROOT\.csproj /grant=administrators=f /grant=system=f /grant=users=r
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=administrators=f /grant=system=f /grant=users=r


    ------------------------------------------------------------------------------
    Both keys must have permissions set ... not just one.

    Open a command prompt (with administrator rights), change the directory(cd) to where you saved the batch file (see above note).
    Type in fix.bat
    It will finish very quickly.
    You should be able to create new VCS programs again.

    Israel

    ********************** Visual C# 2005 Express Edition will probably use different keys ... instead of VCSExpress.csproj.9.0, I think it will be VCSExpress.csproj.8.0 instead. ************************ Browse your registry to check for sure.

    ReplyDelete
  31. Anonymous3:18 PM

    hey

    didn´t work for me :(
    i tried all versions...
    ...but the weird thing is
    i get an error in cmd when i type in -> fix.bat
    it writes (in German:HKEY_CLASSES-ROOT:administrator 1337 Die Struktur der Sicherheitserkennung ist unzulässig
    programm wird nicht ausgeführt
    in english:HKEY_CLASSES-ROOT:administrator 1337 security identification is not valid
    program will not be processed)
    -> i have the german version :)

    i have done all the things
    1. run subinacl
    2. create fix.bat file
    3. open cmd and type in (cd C:\program files\windows resource kits\tools (enter)
    fix.bat (enter)

    => error

    i hope someone has a good idea for me because i am really frustrated and helpless.
    maybe i did something wrong???

    PS: vista ultimate

    thx tom

    ReplyDelete
  32. Anonymous9:30 AM

    In other languages the batch fil has to be modified according to the language.

    In German it has to be this way :
    ubinacl /subkeyreg HKEY_CLASSES_ROOT\.csproj /grant = Administratoren=F /grant=system=F /grant = Benutzer=R
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=Administratoren=F /grant=system=F /grant=Benutzer=R

    Theo

    ReplyDelete
  33. Anonymous9:32 AM

    In other languages the batch fil has to be modified according to the language.

    In German it has to be this way :
    ubinacl /subkeyreg HKEY_CLASSES_ROOT\.csproj /grant = Administratoren=F /grant=system=F /grant = Benutzer=R
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=Administratoren=F /grant=system=F /grant=Benutzer=R

    Theo

    ReplyDelete
  34. Anonymous8:18 PM

    Thanks baby, you are the best, very helpful!

    ReplyDelete
  35. Anonymous9:41 AM

    respect rasta! worked perfectly!

    ReplyDelete
  36. i friggin' love you man! the 2nd vista fix worked.

    ReplyDelete
  37. Anonymous1:31 PM

    Thnx to Peter for the solution and thnx to our anonymous friend from Germany for the hint: I spent some 20 minutes trying to find out where I was wrong, and it was my Russian Vista which uses Russian words for "administrators" and "users"))) I would never believe Windows does it!!! I was sure these Russian substitutes are only aliases, and the true names should be exactly "administrators" and "users". Seems quite logical as my localized copy uses "system" in its original English spelling.

    ReplyDelete
  38. Anonymous2:29 PM

    Thank you :) it worked for me on Vista Business x64

    ReplyDelete
  39. Anonymous4:20 AM

    Very useful. Thanks a lot.

    ReplyDelete
  40. Anonymous12:13 AM

    None of these worked. Didn't try the broad spectrum, cause I don't wanna ruin the rest of my comp. Vista Home Premium, VS2008 Pro, registered, etc. used all the bat files located here, tried everything, fresh install, everything...I'll post a vid on youtube if wanted

    help is appreciated, cause Microsoft is useless

    ReplyDelete
  41. Hi ,thanks,if you add more then you can also solve silver light issues like below..........


    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=administrators=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=users=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=system=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=administrators=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=users=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=system=f

    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Solution.9.0 /grant=administrators=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Solution.9.0 /grant=users=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Solution.9.0 /grant=system=f

    subinacl /subkeyreg HKEY_CLASSES_ROOT\._sln /grant=administrators=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\._sln /grant=users=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\._sln /grant=system=f

    subinacl /subkeyreg HKEY_CLASSES_ROOT\._sln90 /grant=administrators=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\._sln90 /grant=users=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\._sln90 /grant=system=f

    subinacl /subkeyreg HKEY_CLASSES_ROOT\AgControl.AgControl /grant=system=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\AgControl.AgControl /grant=users=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\AgControl.AgControl /grant=system=f

    ReplyDelete
  42. Anonymous4:50 AM

    Didn't work...any other way?

    ReplyDelete
  43. Anonymous4:22 PM

    Hey thanks...worked just fine on VB 2008 Studio Pro on Vista SP2 Beta

    ReplyDelete
  44. i love you man.good job. and thomas explain very clear. u saved me.thanks

    ReplyDelete
  45. Anonymous7:43 PM

    the second code worked for me but when i restarted my comp the sound wouldn't work, internet was disconnected, system restore failed and other system tools failed... nothing would open apart from internet (even though it said it was disconnected). so i restarted, pressed f11 and did system restore from there. so its back to normal now. but i tried the steps again and got VB working again with the second code, but when i restarted again it was the same as before. so i just did the system restore and gave up on VB. (running vista basic btw.)

    ReplyDelete
  46. Anonymous5:20 PM

    Thank you great work

    ReplyDelete
  47. You saved loads of my effort. Thanks a ton.

    ReplyDelete
  48. Anonymous11:06 PM

    Thanks SO SO SO MUCH. Im an developer and could not get it to work. boy im studpid.

    ReplyDelete
  49. Thanks you saved my day!

    ReplyDelete
  50. Anonymous2:14 PM

    the codes really messed up my computer so i stopped using them, they messed up all the drives and had to system restore. But i downloaded visual basic 6.0 which worked, then i tried 2008 again and it worked? strange. after using vb6.0... 2008 suddenly started working o.O

    ReplyDelete
  51. I have been trying every solution available on the internet (almost). Just before I decided to give up I found out what I did wrong.
    Have a look at one of the command lines...

    ****
    subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f
    ****

    I was looking at the line for a few minutes then I realized that my pc´s administrator account IS NOT CALLED "administrators" but instead its "administratorer" (danish).

    So I changed from
    ****
    subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f
    ****

    to

    ****
    subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administratorer=f
    ****

    Thats it...everything works now. I just like to remind you that the administrators/users/guests/systemsmay not be called the same from country to country/continent to continent.

    Hope this helps out a few.

    ReplyDelete
  52. yasinator5:45 PM

    2 questions...
    do i paste all the lines or 1 line?
    do i have to restart my pc?

    ReplyDelete
  53. Anonymous5:45 PM

    2 questions...
    do i paste all the lines or 1 line?
    do i have to restart my pc?

    ReplyDelete
  54. Anonymous1:52 AM

    aahhh I love you guys.. this saved my life!

    ReplyDelete
  55. Thanks for posting this. I used the initial post and the 3rd comment and my issue seems to be gone now (*.bat took around 20 minutes to run!). FWIW I believe I got the problem from installing SP1 for VS.NET 2008 on Vista... thanks a ton Microsoft.

    ReplyDelete
  56. Anonymous12:22 AM

    After lots of trying, "VCSExpress.csproj.9.0" is the key for me. In Registry Editor, I could not even open the key before running the subinacl batch file.

    ReplyDelete
  57. once i ran it through the command prompt, it worked like a dream, cheers!!!

    ReplyDelete
  58. Steven11:27 AM

    Thanks a lot for posting this, the second solution worked for me on Vista 64 bit Home Edition.
    ps: when you run this, go grab some coffee or something.. I quit waiting after 400k files

    ReplyDelete
  59. rookie1:06 PM

    I love you all so much..thank you!!!
    I tried everything before this..and wasted times..until i found this solution.

    ReplyDelete
  60. Anonymous7:51 PM

    I did what the 4th comment said to do and it worked, but it took a long time and it was modifying like 500,000 registry's. Is that gonna be a problem? Not sure i understand registry.

    ReplyDelete
  61. Anonymous2:20 AM

    the second solution works beautifully on Vista Ultimate. Just got to let the thing run for a while, amdist a few failed entries too. But it works in the end. I tried it Visual C# Express edition, which had the same problem.

    ReplyDelete
  62. Anonymous9:27 AM

    2nd fix worked like a charm.
    Thanks !

    ReplyDelete
  63. OMGSH...I can't believe it, after months of searching the right key words, I stumbled across the greatest find in all the history of the world, YOU HEHE. Not A super MS fan, and I do use VS 08 much in web development and wanted to use for desktop applications and other projects, bought it, cost $$$ and couldn't even use it fully...until now. Those peski Regitry errors are gone. THANK YOU, YOU HAVE HELPED ME SO MUCH. IT WORKED LIKE A CHARM!! : D

    I would like to give you a gift. My band Grind House(tm) just released our 2nd album. It may not be your style, but hey it's FREE.

    http://grindhouse-music.com/GHzx007AR09/z007xgrind_do_20_AR09.html

    user: gift
    pass: Fn-XyEKWuxZ{

    (copy and paste user log-in:}

    It goes totally FREE in December worldwide, share with your co-workers, friends and family...

    Thank you again. You are a GOD!!!!!!!LOLOL, Take care
    Penny Lane

    ReplyDelete
  64. I taste all solutions but nothing
    was working.

    This is my solution
    for German Vista

    subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=Administratoren=f

    it needs a bit time because it is changeing all registry ^^
    but it works

    ReplyDelete
  65. Hi,
    The fix provided by you works perfect.
    I am trying do execute the subniacl exe and the commonds thru C# code.My problem with this is that the exe takes a hell of time to execute if its thru C# code.
    What can be the reason?is there a solution for this.

    ReplyDelete
  66. Hey people!
    I'm running windows 7 ultimate (x64) with a 2.4Ghz core 2 duo and 6 gb of ram everything on an HP HDX 1160US (laptop).
    I got the same problem of "there is not enough free memory to run this program" plus my sound doesn't work and my laptop says there is no internet connectivity but when I open the explorer the internet is working fine.

    My hypothesis began when I installed visual studio 2010 with framework 4.0 beta. I reckon that was the root of the problem as one day it suddenly stopped working and therefore I decided to uninstall it. I forgot about this until I wanted to install the beta of office 2010 and I couldn't install it until I figure out framework 4.0 was still there on my computer... so I uninstall it and everything fine again.
    However, some days ago I had to work with visual studio 2008 team edition, I installed it and I had it running BUUUT when I wanted to create a new project... ERROR: "Requested Registry access is not allowed"


    I did everything it was said but it didn't solve my problem but when I reboot I was in this situation.
    I can't format my disk and do a clean installation as I have several programs and configurations that would take a decade to reinstall again! :(
    I can't restore or update the OS cuz I forgot to create a restore point and when I want ti upgrade it says it doesn't recognize the disk or something like that (is just because of the problems I mentioned above).

    CODE USED:
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=administrators=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=users=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=system=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=administrators=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=users=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=system=f


    subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f
    subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
    subinacl /subdirectories %SystemDrive% /grant=administrators=f /grant=system=f
    subinacl /subdirectories %windir%\*.* /grant=administrators=f /grant=system=f


    subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=administrators=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=users=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=system=f



    Please I'm so tired of this and I need a solution ASAP... I would be greatly appreciated!

    ReplyDelete
  67. Anonymous2:02 PM

    Hey people!
    I'm running windows 7 ultimate (x64) with a 2.4Ghz core 2 duo and 6 gb of ram everything on an HP HDX 1160US (laptop).
    I got the same problem of "there is not enough free memory to run this program" plus my sound doesn't work and my laptop says there is no internet connectivity but when I open the explorer the internet is working fine.

    My hypothesis began when I installed visual studio 2010 with framework 4.0 beta. I reckon that was the root of the problem as one day it suddenly stopped working and therefore I decided to uninstall it. I forgot about this until I wanted to install the beta of office 2010 and I couldn't install it until I figure out framework 4.0 was still there on my computer... so I uninstall it and everything fine again.
    However, some days ago I had to work with visual studio 2008 team edition, I installed it and I had it running BUUUT when I wanted to create a new project... ERROR: "Requested Registry access is not allowed"


    I did everything it was said but it didn't solve my problem but when I reboot I was in this situation.
    I can't format my disk and do a clean installation as I have several programs and configurations that would take a decade to reinstall again! :(
    I can't restore or update the OS cuz I forgot to create a restore point and when I want ti upgrade it says it doesn't recognize the disk or something like that (is just because of the problems I mentioned above).

    CODE USED:
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=administrators=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=users=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=system=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=administrators=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=users=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=system=f


    subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f
    subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
    subinacl /subdirectories %SystemDrive% /grant=administrators=f /grant=system=f
    subinacl /subdirectories %windir%\*.* /grant=administrators=f /grant=system=f


    subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=administrators=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=users=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=system=f



    Please I'm so tired of this and I need a solution ASAP... I would be greatly appreciated!

    ReplyDelete
  68. Dude, but this is fix is not working with Windows 7...can u help plz

    ReplyDelete
  69. Anonymous3:21 PM

    You are awesome bro. simply awesome .....you had me at batch.....lol

    ReplyDelete
  70. Anonymous3:54 PM

    This works. The FIX worked for me on Vista. Let it run and VS will not have the issues anymore. I can't say how much I am thankful for finding this fix. THANKS, THANKS, THANKS!!!

    ReplyDelete
  71. Anonymous10:14 PM

    For anyone who doesnt want F-Up their registry with something they dont understand go here, twas my savior after having to do a system restore:
    Vista SP1 for VB2009 Ver9.0.3 er something
    Cheers,
    (Actual I got this link from MS)


    http://www.texttoolkit.com/index.php?option=com_content&view=article&id=74:visual-studio-requested-registry-access-is-not-allowed&catid=35:technology&Itemid=55

    ReplyDelete
  72. Anonymous6:19 AM

    works great,thanks alot

    ReplyDelete
  73. I couldn't do a system restore, and I'm going to reinstall windows 7... This sux, next time warn people of the shit that may come out of these so called 'fixes' (warn not in the comment section)

    ReplyDelete
  74. Anonymous10:21 AM

    Still not work, and in the batch says there was "The System Cannont find the file specified" and everything and also vb cant make a new project. Can everyone solve/fix this? please

    ReplyDelete
  75. Anonymous5:01 AM

    If your OS is in other language than english, maybe the administrators group not exist, change to f.e. Administradores

    ReplyDelete
  76. The second option is excellent.Its really worked for me.

    ReplyDelete
  77. Anonymous3:04 PM

    how do i do it on windows 7 vb express 2010? (64bit)

    ReplyDelete
  78. Anonymous7:52 PM

    Folks are either giving incomplete workarounds (only changing permissions on a couple of reg keys), or scary workarounds that go WAY too far (applying permissions to ALL reg keys). This script finds the happy balance and should work for VS2008 and VS2010. (Note that this requires you have downloaded and installed SubInACL into the default install directory)

    Copy the below code into a file called vsfix.cmd, replacing username with your Windows account username.

    REM ---- CODE BEGINS ----
    IF DEFINED PROGRAMFILES(x86) SET PROGRAMFILES(x64)=%PROGRAMFILES%
    IF NOT DEFINED PROGRAMFILES(x86) SET PROGRAMFILES(x86)=%PROGRAMFILES%

    "%PROGRAMFILES(x86)%\Windows Resource Kits\Tools\subinacl.exe" /keyreg HKEY_CLASSES_ROOT\VisualStudio* /setowner=username
    "%PROGRAMFILES(x86)%\Windows Resource Kits\Tools\subinacl.exe" /keyreg HKEY_CLASSES_ROOT\VisualStudio* /grant=Administrators=F
    REM ---- CODE ENDS ----

    Did you find username in the code above!?!?! Make sure to replace it!
    Make sure Visual Studio is closed.
    Right click on the file and choose "Run as Administrator".
    Start up Visual Studio and create your project.

    Note: This assumes your Windows account is an Administrator. If not, replace Administrators=F with Everyone=R.

    ReplyDelete
  79. In my win7 dont work and im administrator..i give all autorizzation...how i can do?

    ReplyDelete

Post a Comment

Popular posts from this blog

Some observations on Script Callbacks, "AJAX", "ATLAS" "AHAB" and where it's all going.

IE7 - Vista: "Internet Explorer has stopped Working"

FIREFOX / IE Word-Wrap, Word-Break, TABLES FIX