Access to the registry key is denied.

Today our program is about fixing the issue of Access being denied when we attempt to access any registry key in Regedit. 

Problem: Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\Extensions' is denied.' 


Solution : 

The problem is clear means you don't have sufficient permission to modify the key which is required to access the registry key. 

I am going to solve this problem in three possible solutions. 

  1. First solution to this problem is by running your program through administrator access. Most of the programs have properties and running permissions. You have to run your program as run an administrator. For this, you have to right-click on your program > open compatibility tab and then check the option " run this program as an administrator". 

Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\Extensions' is denied.'

  1. Solution number 2 is to identify if the permission on the registry key has been changed. Once you have changed the registry key then you will not need to have extra access to modify the key. You can easily show any message if the registry key successfully changed or not. This will be beneficial to the user to clearly identify what is going on.
  2. The last solution to this problem is to check whether the specific registry key is available in Regedit or not. For example, I want to add the extension in Google Chrome using C#. For this, I have to check whether the following registry key exists or not. 
Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\Extensions' is denied.



HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\Extensions 

If the following registry key is available then it's good for your program to change the registry key. If not available then you have to create a new registry key by right click in the Registry class folder clicking new and then clicking the key to generate a new registry key. 

These are three solutions to change the registry key or get access to the registry key using the manual method.

Post a Comment

1 Comments

  1. amazing article now i know how to fix this issue

    ReplyDelete