I am trying to get a program to run but I am met with a Access to registry key 'Key goes here!' is denied. The following is the line of code that is giving me this error:
RegistryKey registry = Registry.LocalMachine.CreateSubKey(@"path goes here");
I am running Windows 7 Ultimate 32 bit. I am using an administrator account. The project also has a vshost.exe.manifest file which I tried editing. However, when I change the requiredExecutionLevel and subsequently run the program the changes revert back. How do I fix this issue?