Ask a Question related to ASP.NET Security, Design and Development.
-
PhilJSmith67 #1
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
-
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... -
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:... -
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... -
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. ... -
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... -
DotNetJunkies User #2
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



Reply With Quote

