System.Security.SecurityException: Requested registry access is not allowed.

Solution:
1.Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog   in  registry(regedit)

2.Right Click go to permission and Add “Everyone” in to Groups and give full access.

7 comments: