Home Dashboard Directory Help

"Requested registry access is not allowed" creating project in VS 2010 by SailinginBC


 as Not Reproducible Help for as Not Reproducible

Sign in
to vote
Type: Bug
ID: 521505
Opened: 12/21/2009 5:11:36 AM
Access Restriction: Public
User(s) can reproduce this bug


I have just installed Visual Studio 2010. If I try and create any VB project I get the error:
"Requested registry access is not allowed" and the project is not created.

I have tried running as administrator, but it makes no difference.

After installing 2010, the same problem appeared in VB 2008, however I fixed that with a subacl batch file.
Sign in to post a comment.
Posted by GP_2010 on 6/26/2010 at 9:11 PM
I also had the same problem with VS 2010 and Vista OS .Solution mentioned @ http://social.msdn.microsoft.com/Forums/en/vbexpress2008prerelease/thread/c273b0e1-7f46-4065-afaf-4edf285d2531 fixed issue for me.

1. Download and install the SubInACL utility.
2.Take a back up of registry and run

cd /d "%programfiles%\Windows Resource Kits\Tools"
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
Posted by Andrew Weesner on 6/15/2010 at 5:50 PM
It is a permission issue in the registry. Why would the Visual Studio 2010 related entries change? My Visual Studio 2008 entries still work fine.
Posted by Andrew Weesner on 6/15/2010 at 5:49 PM
Same exact problem when I try and create a Windows Forms project or a ASP.NET Web Application or a ASP.NET MVC2 Web Application. I noticed this occured after I downloaded and installed MV2 from ASP.NET.
Posted by Frogger21 on 4/22/2010 at 3:47 AM
I had exactly the same problem in VB Express 2010 until I changed the permissions on HKEY_CLASSES_ROOT\VBExpress.vbproj.10.0 and HKEY_CLASSES_ROOT\VBExpress.Launcher.vbproj.10.0 and ownerships and it's at least allowing me to create a new project now...
Posted by Mike Wohletz on 2/7/2010 at 10:50 AM
I have this same problem, however the posted fix did nothing for me.
Posted by Microsoft on 1/19/2010 at 10:19 AM

Thanks for contact us about this issue -- we've heard of this problem before. To date, we have been unable to repro the issue, but there is a known workaround:

1. Press WINDOW+R to open the Run window, type "regedit" (no quotes) and press ENTER to execute. If a UAC dialog appears choose Yes to open the Registry Editor with elevated priveledges.
2. Navigate to HKEY_CURRENT_USER\Software\Classes.
3. Create a new key named ".vbproj"
4. Run VS 2010 as an administrator.
5. Try creating a VB project.

Please let me know if the steps above workaround the problem. You can reach me directly at dustinca@microsoft.com.

Kind Regards,
Dustin Campbell
Visual Basic IDE Program Manager
Posted by Microsoft on 12/22/2009 at 6:30 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by MDMower on 6/29/2010 at 5:42 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)

Avia Master provides a reasonable script, but it is ridiculously long and only applicable to VS2010. Try this instead:
Copy the below code into a file called vsfix.cmd, replacing username with your Windows account username.


"%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".
No restart needed.
Posted by SailinginBC on 2/18/2010 at 8:52 AM
I created thye following batch file which uses subinacl to change permission on VB studio keys. I kept adding items until it worked. Now I can create VB projects and add files to them.

@echo off
echo looking for subinacl...
if EXIST "%programfiles%\Windows Resource Kits\Tools" (
cd /d "%programfiles%\Windows Resource Kits\Tools"
IF EXIST "%programfiles(x86)%\Windows Resource Kits\Tools" (
cd /d "%programfiles% (x86)\Windows Resource Kits\Tools"
if NOT EXIST subinacl.exe (
echo Error: subinacl was not found in your system, please download
echo and install subinacl to the default directory prior to running this script
echo System not repaired
echo subinacl found!
echo Before the script begins going through the registry, please ensure that you have
echo all anti-virus, anti-spyware, or anti-adware programs off as they can block
echo changes to the registry and might mess things up.
echo Press any key to begin...
pause > nul
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.accessor.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.AddIn.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.asa.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.asax.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.ascx.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.ashx.10.0 /grant=administrators=f /grant=users=f /grant=system=f

subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.asmx.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.asp.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.aspx.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.bmp.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.cd.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.config.10.0 /grant=administrators=f /grant=users=f /grant=system=f

subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.ContentInstaller.vscontent /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.ContentInstaller.vsi /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.coverage.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.coveragexml.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.cs.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.css.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.cur.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.datasource.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.dbproj.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.disco.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.dmp.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.dtd.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.DTE /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.DTE.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.edmx.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.fs.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.fsi.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.fsproj.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.fsscript.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.fsx.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.hdmp.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.hta.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.htm.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.html.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.ico.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.js.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Launcher._sln /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Launcher._sln100 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Launcher._sln60 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Launcher._sln70 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Launcher._sln71 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Launcher._sln80 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Launcher._sln90 /grant=administrators=f /grant=users=f /grant=system=f

subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Launcher._vbxsln100 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Launcher._vbsxln80 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Launcher._vbsxln90 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Launcher.suo /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Launcher.vbproj.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Launcher.csproj.10.0 /grant=administrators=f /grant=users=f /grant=system=f

subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.res.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.resx.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.settings.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.sln.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.solution.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.solution /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vb.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.user.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.xml.10.0 /grant=administrators=f /grant=users=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.xamlx.10.0 /grant=administrators=f /grant=users=f /grant=system=f

echo Successfuly repaired permissions
echo Your computer is about to restart, please save any work to prevent data
echo loss, if you do not want to restart, just close this window, otherwise
echo press any key to restart...
pause > nul
shutdown -r -f -t 1