I have some code causing me trouble, it's worked until now and I can't think of anything I've changed that will have affected it (including Windows settings and code).
The code is as follows:
My.Computer.Registry.LocalMachine.CreateSubKey("SOFTWARE\EastSoft\Checkout2017")
My.Computer.Registry.LocalMachine.SetValue("SOFTWARE\EastSoft\Checkout2017", "AcceptedEULA", "True")
As I said, it used to work fine, but now I am greeted with the message:
System.UnauthorizedAccessException: 'Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\EastSoft\Checkout2017' is denied.'
I am using Windows 10 Pro (64 Bit) running Visual Studio 2017 Enterprise. Any help will be greatly appreciated, thanks guys!
James