Search code examples
securitywinapipermissionsregistryvb.net-2010

Problems Using NET Framework to access Windows Registry


i'm using vb.net 2010, .net framework 3.5 and the procedure and the exception I get, are as follows:

enter image description here

I've been reading about manifest, and this and that, but what it seems to me is that i'm still missing something, will anybody kindly give me any suggestions? Thanks in advance!


Solution

  • You need to be elevated to modify this key. The process that performs these registry modifications needs to run as admin.

    Use the requireAdministrator option in the manifest. Or start the process using the runas verb.