When you try to create a new project in Visual Studio 2008, or even some Express editions, does it display the error “Requested Registry Access Is Not Allowed”? or something similar?

Well, it seems to be quite a common problem, but the solution is very simple. First download SubInACL from the Microsoft Website, and install it. Then open the folder C:\Program Files\Windows Resource Kits\Tools and afterwards create a batch file / windows command script (using a .cmd extension) and open it with a text editor. Then if you have for example problems with C# Express 2008 write the following commands:

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

If you are having problems when trying to create a C# project in Visual Studio 2008 then write the following commands:

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

You might need to search the registry to find the relative folder for the problem that you are having, because if for example you are having problems with creating a VB project in Visual Studio 2008 you have to replace csproj with vbproj and so on. Then just save that .cmd file and double click it (make sure that it is located in the folder C:\Program Files\Windows Resource Kits\Tools or it will not work), then it will run and now you will be able to create a new project with no problems!

Happy Coding! :)

Related Posts

Leave a Reply