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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
|