Give ASPNET Write access to registry key programatically

Discussion in 'ASP .Net Security' started by Armando Canez, Dec 16, 2006.

  1. This seems like a pretty straightforward question, but I can't seem to find
    anything useful.

    I know ASPNET (or NETWORK SERVICE) does not have registry write access by
    default. so I need to give it to it programatically.

    Dose anyone know how can I give full access to a specific user account
    (actually the one running my Web app. Wich account, is another question) to
    a specific registry key? I need to create different subkeys in my web app.

    I want to do this in a vsinstaller custom action, so I believe the user
    running this code will have adminstrator privileges.

    .... I'm running a little bit desperate here.

    Thanks in advance.

    I'm using ASPNET, VB.NET, VS2003 (.NET 1.1.4322)

    --
    Not an MCSDE, MVP, MCDE, MSFT or WTF
    Not a single certification, besides my degree.
    I'm just an engineer with more than 14 years spent in design and
    programming.
    .... FYI
     
    Armando Canez, Dec 16, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. shiv
    Replies:
    0
    Views:
    401
  2. HK
    Replies:
    1
    Views:
    4,376
    Cowboy \(Gregory A. Beamer\)
    Apr 1, 2004
  3. Jenna
    Replies:
    2
    Views:
    4,498
    Jenna
    Jul 27, 2004
  4. bazzer
    Replies:
    0
    Views:
    1,187
    bazzer
    Mar 24, 2006
  5. bazzer
    Replies:
    1
    Views:
    1,516
    sirfunusa
    Mar 24, 2006
  6. bazzer
    Replies:
    0
    Views:
    11,319
    bazzer
    Mar 30, 2006
  7. Leny
    Replies:
    3
    Views:
    17,229
    Daniel
    Feb 1, 2005
  8. Dominick Baier [DevelopMentor]

    Access to the registry key HKEY_CLASSES_ROOT\EntSrvcTest1_direct.Global is denied

    Dominick Baier [DevelopMentor], Sep 15, 2005, in forum: ASP .Net Security
    Replies:
    3
    Views:
    962
    Dominick Baier [DevelopMentor]
    Sep 15, 2005
Loading...