DeleteSubKey UnauthorizedAccessException
Posted
by Adam Haile
on Stack Overflow
See other posts from Stack Overflow
or by Adam Haile
Published on 2010-04-28T18:22:34Z
Indexed on
2010/04/28
18:27 UTC
Read the original article
Hit count: 237
I'm trying to write a quick app to modify some registry keys. When I'm browsing via RegEdit, I can modify and delete the keys with no problems.
But when I try to use RegistryKey.DeleteSubKey() it throws an UnauthorizedAccessException
Is there anyway to gain the privileges to do this? Also, why would there be a problem if my user account obviously has access to make the changes?
© Stack Overflow or respective owner