using (RegistryKey keys = Registry.LocalMachine.OpenSubKey(a_Path, RegistryKeyPermissionCheck.ReadWriteSubTree, RegistryRights.FullControl))
{
// Doing some operation like reading some value
}
Exception:
Requested registry access is not allowed.
Can any body help me to come out.