IIS - AppPool Identity vs Registry - HKEY_CURRENT_USER

Last post 03-27-2008 2:01 PM by crixo. 0 replies.

Sort Posts:

  • IIS - AppPool Identity vs Registry - HKEY_CURRENT_USER

    03-27-2008, 2:01 PM
    • Member
      266 point Member
    • crixo
    • Member since 07-04-2002, 3:22 AM
    • Posts 62

    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?

    Filed under: , ,
Page 1 of 1 (1 items)