Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

C#, Windows 8 UAC, and registry edit

$
0
0
Dear all,

My application works well on Vista, Win 7 32 and 64 bits.
It modifies some registry key in HKEY_LOCAL_MACHINE.

But when run on Win 8 (both 32 and 64), with minimum level UAC (I drag the slider to bottom, then restart), it doesn't work. And there is the error:

"Application attempted to perform an operation not allowed by the security policy. To grant this application the required permission, contact your system administrator, or use the Microsoft .NET Framework Configuration tool. Requested registry access is not allowed."

When I disable completely UAC of win 8 by editing registry, then restart computer, my application works well.

How can I deal with win 8 UAC enable with c#?

Thank you very much.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>