"Requested Registry Access is not allowed" Error when creating a new project in Visual Studio.NET in Vista
Problem:
Trying to create a new project - any project - using VS2008 running on Vista gets this error:
"Requested Registry Access is not allowed."
Reason:
The proper permissions are not set by Visual Studio.
Solution:
Step 1: Download subinacl.msi from the link
http://go.microsoft.com/fwlink/?LinkId=23418 and install it.
Step 2: Browse to C:/Program Files/Windows Resource Kits/Tools/ and create a file called vsfix.cmd
Step 3: Open the file you created, and inside copy-paste this code block and then save it:
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
Step 4: Right click on this file and click Run as administrator
This should fix the problem.
Trying to create a new project - any project - using VS2008 running on Vista gets this error:
"Requested Registry Access is not allowed."
Reason:
The proper permissions are not set by Visual Studio.
Solution:
Step 1: Download subinacl.msi from the link
http://go.microsoft.com/fwlink/?LinkId=23418 and install it.
Step 2: Browse to C:/Program Files/Windows Resource Kits/Tools/ and create a file called vsfix.cmd
Step 3: Open the file you created, and inside copy-paste this code block and then save it:
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
Step 4: Right click on this file and click Run as administrator
This should fix the problem.
Comments