Search code examples
c#visual-studio-2010visual-studio-express

Visual studio 2010 express error "Requested registry access is not allowed"


I am using visual studio 2010 express C#. When ever i try to create a new form or project, an error message pops "Requested registry access is not allowed".

Any suggestions?


Solution

  • Visual Studio will sometimes try to update something in the registry that requires Administrator access (for example, when you register it).

    Normally, running Visual Studio once as an admin will fix the problem, then you can go back to using an unprivileged user.

    If that doesn't help, you can use Process Monitor to see what it is doing.

    Update

    If you can't access the registry key as an Administrator, try taking ownership of it. Assuming you're using Windows 7, run regedit as an Administrator, navigate to the key, right-click and select Permissions, click the Advanced button, go to the Owner tab and you can change the owner to Administrators. Remember to select "Replace owner on subcontainers and objects". You should then be able to access the registry key.