I unable to open programmatically registry subkey on windows 10 PC.
I am getting exception by using below code.
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.


Amit GuptaRank #190 · 12.8K reputationPosted Jul 13, 2017, 12:53 AM EDT
Sujeet SumanRank #790 · 2.9K reputationPosted Jul 13, 2017, 1:03 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Jul 13, 2017, 1:20 AM EDT
Sujeet SumanRank #790 · 2.9K reputationPosted Jul 13, 2017, 1:45 AM EDT
requestedExecutionLevel level="asInvoker" uiAccess="false" />Amit GuptaRank #190 · 12.8K reputationPosted Jul 13, 2017, 2:08 AM EDT
Sujeet SumanRank #790 · 2.9K reputationPosted Jul 13, 2017, 2:21 AM EDT
SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
Amit GuptaRank #190 · 12.8K reputationPosted Jul 13, 2017, 2:43 AM EDT