2008年3月17日

[VS2008]"Requested Registry Access not allowed" Error when create new project in VS2008/Vista

When create new project in VS2008 on Vista
A [Requested Registry Access Not Allowed] Error message was shown

This message was shown due to some ACL problem on the registry keys VS2008 requires
To fix the problem

  1. Download SubInAcl.exe from Microsoft Download site here
  2. Install SubInAcl, it will be placed in C:\program files\windows resource kit\tools by default.
  3. Create a batch file with the following commands

    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

  4. Save and execute the batch file.

沒有留言:

Blog Archive

About Me