If you are Getting Requested registry access is not allowed error message then the process to fix Requested registry access is not allowed error message is available in this web page. When you start the computer as regular user and you are trying to use Microsoft Visual Studio .NET to creating a custom event then you may receive the following error message.
Causes of this error
The error that is getting by you in your computer occurs when the user account that you are using to log on does not have the permission. You are calling the EventLog.CreateEventSource() method to create a custom event log, the custom event log entry first time, it is created under the following registry sub key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog
Process to fix Requested registry access is not allowed error message
If you want to create the above sub key then you have must permission to write. The regular user account does not have the permission for write that is why you are receiving the above error message.
To solve this issue you must have to permission to create a custom event log. Without permission you are not able to remove this error. To grant permission to create a custom event log follow these steps.
- First all start the computer as administrator and then click on start button then click on run option and after that type regedit here and then press enter.
- A registry editor window becomes appear then locate the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog registry sub keys and after that right click on event log and then click on permission. Then you will see the permission for Eventlog dialog box will appear.
- Now click on advance then the Advanced Security Settings for Eventlog dialog box will appears.
- Now in the name column double click on the users group and then the Permission Entry for Eventlog dialog box will appears.
- Now select the set value check box and then choose the Create Subkey check box and then click on ok botton.
- Now exit from Registry editor and then restart the computer and login as regular user.
Now you can try to create a custom log event by using visual studio and then you can try to write this event log by using an application that is build on the visual studio .NET.