Using ASPNET_SETREG.exe

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Using ASPNET_SETREG.exe

    Can this utility be used for an impersonated user in Web.Config?
    I've used it to create the appropriate userName and password keys in the
    registry and put the settings in Web.Config like this:
    <identity impersonate="true"
    userName="registry:HKLM\SOFTWARE\...\ASPNET_SETREG ,userName"
    password="registry:HKLM\SOFTWARE\...\ASPNET_SETREG ,password"
    />
    However, I keep getting errors saying that the password or userName could
    not be read from the registry. I've made sure that the ASPNET account on
    the server (Win 2003) has permissions to read the specific key. Is there
    anything else I need to do?

    Thanks,
    -- Hardin


    HBrothers Guest

  2. Similar Questions and Discussions

    1. ASPNET_SETREG and Framework 1.1
      My colleage and I determined that generic error message that is given as a response to *anything* being slightly out of place, when using the...
    2. Using aspnet_setreg
      Hello, I am converting a asp.net web app from using connection string safety in the web.config to using encrypted values using astnet_setreg. I...
    3. ASPNET_SETREG runs on XP, not 2000
      I have a webservice up and running locally on my dev machine (XP) using impersonate like so: Line 5: <identity impersonate="true" Line 6:...
    4. aspnet_setreg fails
      Getting a consistent failure on machines when attempting to run the aspnet_setreg utility. The command line has worked on one or two machines. ...
    5. Has _ANYONE_ ever got the aspnet_setreg utility to work for them?
      Dear Jason, I found the resolution to my problem with a hotfix from MS it is listed as Q329250 and you must requested from the support. You have...
  3. #2

    Default Using ASPNET_SETREG.exe

    Did you follow this step:

    Grant Read permissions to the Aspnet_wp.exe process
    account.

    See [url]http://support.microsoft.com/default.aspx?scid=kb;EN-[/url]
    US;329290 for more info.
    >-----Original Message-----
    >Can this utility be used for an impersonated user in
    Web.Config?
    >I've used it to create the appropriate userName and
    password keys in the
    >registry and put the settings in Web.Config like this:
    > <identity impersonate="true"
    >
    userName="registry:HKLM\SOFTWARE\...\ASPNET_SETREG ,userNam
    e"
    >
    password="registry:HKLM\SOFTWARE\...\ASPNET_SETREG ,passwor
    d"
    > />
    >However, I keep getting errors saying that the password
    or userName could
    >not be read from the registry. I've made sure that the
    ASPNET account on
    >the server (Win 2003) has permissions to read the
    specific key. Is there
    >anything else I need to do?
    >
    > Thanks,
    > -- Hardin
    >
    >
    >.
    >
    Keith Guest

  4. #3

    Default RE: Using ASPNET_SETREG.exe

    Hi!
    I have exactly the same problem and I followed those steps Keith mentioned. Problem still exists on my 2003 server but it works with my XP/IIS5.1 !
    Is there some fix for this problem that I have with my development environment or maybe some differences with security policys?



    Marko Guest

  5. #4

    Default RE: Using ASPNET_SETREG.exe

    Hi
    I have exactly the same problem with my Win2003 server - but wtih XP/IIS5.1 it works!
    I have tried to find the difference but haven't figure it out yet.
    Does my development environment (framework SDK) have something that my test Win2003 server doesn't? Or..
    Is there some fix for Win2003 to resolve this problem? Or..
    Can the local security policy be the reason for this
    --Marko-
    ps It was really hard to get this thru...
    Marko Guest

  6. #5

    Default RE: Using ASPNET_SETREG.exe

    On your Windows 2003 machine keep make sure that you have granted the
    permissions needed to the correct account. You will find is you check in
    IIS that the process is now running under an account called Network
    Service. Also, if this still does not work, you could download regmon from
    [url]http://www.sysinternals.com[/url] and reproduce the problem will running that
    tool. You can look for any access denieds and it will also show you which
    account is attempting to make an access.

    This posting is provided "AS IS" with no warranties, and confers no rights.

    Hope this Helps
    Holly

    Holly Mazerolle Guest

  7. #6

    Default RE: Using ASPNET_SETREG.exe

    Thanks Holly
    Granting read permissions to those registry keys (for Network Service account) solved the problem
    --Marko--
    Marko Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139