I am getting error cannot write to the registry key when i am trying to save my keys in the registry .
//Here is my code .
Note : I tried to run as an Admin
if (null == skms) { skms = Registry.LocalMachine.OpenSubKey("SOFTWARE",true); RegistryKey key = skms.CreateSubKey( RegistryKeyName, RegistryKeyPermissionCheck.ReadWriteSubTree); }
This is the answer for my question .