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*******@yaho o.com> wrote in message
news:2e******** *************** ***@posting.goo gle.com...
I am exceuting the following command in C#
using Microsoft.Win32 ;
RegistryKey key = Registry.LocalM achine.OpenSubK ey(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.