themhz
themhz

Reputation: 8424

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?

Upvotes: 2

Views: 7580

Answers (4)

R J
R J

Reputation: 505

VS 2019

Close the visual studio and right click it and select Run as administrator.

It works..

Upvotes: 0

arx
arx

Reputation: 16896

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.

Upvotes: 5

Dante
Dante

Reputation: 3891

Maybe opening it by right clicking and selecting "Run as administrator" solves your problem?

Upvotes: 1

plenderj
plenderj

Reputation: 573

Try running Visual Studio 2010 as an administrator and see if that helps Are you on a domain, or on some sort of locked down account?

Upvotes: 1

Related Questions