ASPNET_SETREG and Framework 1.1

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

  1. #1

    Default Re: 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 registry/encryption option, is that there was an "error reading the password from the registry."

    After chewing on this for too long, we went back to Step #1 and used ASPNET_SETREG to create the registry keys again. After experimenting, it became obvious that the encryption key used for these values is partially determined by the registry key path+name, and perhaps a creation timestamp for the key, as well.

    FYI, on Windows Server 2003 / IIS 6.0, make sure that you're not using IIS 5.0 Isolation for your application pools, that the pool you're running your application under is using Network Service as a user (usually DefaultAppPool), and that Network Service user has read-access to the registry keys created by ASPNET_SETREG.

    I would suggest using the instructions in the section "ASP.NET Worker Process Identity" toward the middle of [url]http://msdn.microsoft.com/library/en-us/secmod/html/secmod15.asp?frame=true[/url] for your web.config file entries and for ASPNET_SETREG.

    Philip J. Smith

    ---
    Posted using Wimdows.net NntpNews Component -

    Post Made from [url]http://www.DotNetJunkies.com/newsgroups[/url] Our newsgroup engine supports Post Alerts, Ratings, and Searching.
    PhilJSmith67 Guest

  2. Similar Questions and Discussions

    1. 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...
    2. 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:...
    3. 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...
    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 Re: ASPNET_SETREG and Framework 1.1


    1. You must open Registry Editor, Start | Run, "regedt32"
    2. You must add the ASPNET or any other LSA account that you "impersonify" to the registry key.
    3. Select the registry key (e.g HKLM\Software\AppName\SessionState\ASPNETSETREG
    a) Click Security | Permissions...
    b) Add the appropriate LSA account (with read permission)
    4. Close Registry Editor


    ---
    Posted using Wimdows.net NntpNews Component -

    Post Made from [url]http://www.DotNetJunkies.com/newsgroups[/url] Our newsgroup engine supports Post Alerts, Ratings, and Searching.
    DotNetJunkies User 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