Click here to Skip to main content
15,892,537 members
Articles / Programming Languages / Visual Basic

Requested registry access is denied

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
12 Oct 2012CPOL 6.2K  
Hello,The application is written in vb.net. When debugging the code, the section which causes an issue is as follows:Dim RegKey As RegistryKeyRegKey = Registry.LocalMachine.OpenSubKey(Path, True)When the above statement is executed the exception 'Requested registry access is...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
12 Oct 2012CPallini
Since Vista OS an application needs elevated privileges to access 'Local Machine' subtree. See additional info at Stack Overflow[^].
Please Sign up or sign in to vote.
9 Nov 2012Member1978
This package was written a few years ago in order to implant a few details in registry. I appreciate that Microsoft promote individual to use ‘Settings’ or create some kind of XML file to save any details which your package need. As a result my approach is as such now days.However, in order...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions