Give the ASP.NET process access as well as the IUSR account. Either that or
assign a user for the thread before making the call.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************** ********************
Think Outside the Box!
************************************************** ********************
"HK" <ju*******@yahoo.com> wrote in message
news:2e**************************@posting.google.c om...
I am exceuting the following command in C#
using Microsoft.Win32;
RegistryKey key = Registry.LocalMachine.OpenSubKey(KeyName);
I keep getting the exception "Requested registry access is not
allowed."
If i give EVERYONE full access to the key , then i am able open the
key but i do not want to do that.
Please help.