Groups > Asp .Net > Advanced ASP.NET Architecture > IIS - AppPool Identity vs Registry - HKEY_CURRENT_USER




IIS - AppPool Identity vs Registry - HKEY_CURRENT_USER

IIS - AppPool Identity vs Registry - HKEY_CURRENT_USER
Thu, 27 Mar 2008 18:01:35 +000
My web application is using ad hoc AppPool(IIS6) using as identity a specific
user(User1).

Into this web app. I need to read/write a Registry Key under HKEY_CURRENT_USER.

I thought key red by my application, runnign under User1 based AppPool Identity,
is same as User1 is logged on the machine...but is not...

rather than my web app is running under User1, key registry reead/write is
always: HKEY_USER -> .DEFAULT also if my C# is calling HKEY_CURRENT_USER
Microsoft.Win32.RegistryKey hiveKey = Microsoft.Win32.Registry.CurrentUser;

..why??

I'm also using same code into a service, running under User1, and what happend
is what I aspected: HKEY_CURRENT_USER belong to user under who is running the
service, in fact User1... why is not the same for AppPool?
Post Reply
about | contact