Re: aspnet_setreg - works for WinXP but not on Win2003 server
From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 04/01/04
- Next message: David Neff: "is IIS 5.0 safe?"
- Previous message: David Wang [Msft]: "Re: IIS6 change all site ip's"
- In reply to: Mark Petronic: "aspnet_setreg - works for WinXP but not on Win2003 server"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 31 Mar 2004 21:02:52 -0800
Use REGMON from www.sysinternals.com to see what identity is denied read
access to that Registry key and give it access.
The process model used by ASP.Net changed between Windows XP and Windows
Server 2003, so the identity used by ASP.Net will likely differ, especially
if you did not change the AppPool Identity to be ASPNet. I suspect you need
to give IIS_WPG read access to that registry key instead of the ASP.Net
Machine Account on Windows Server 2003.
-- //David IIS This posting is provided "AS IS" with no warranties, and confers no rights. // "Mark Petronic" <mpetronic@hns.com> wrote in message news:68E0D4A0-71E3-46E5-9484-480DE2F87EC3@microsoft.com... I have a ASP.NET website that is used to remotely manange configuration of applications we deploy on the server. We've migrate this all to Win2003 server. On WinXP, we used aspnet_setreg.exe to create encrytped credentials that we store in the registry and point to from web.config. We also modifed the registry key permission to allow the ASP.NET Machine Account have read access per the MSDN KB article on how to configure using aspnet_setreg.exe. This all worked fine on WinXP. However, on Win2003, using the same setup in web.config, I get an error message when trying to connect to my website,. The error message says, "Parser Error Message: Error reading the password from the registry." My web.coinfig file contains: <identity impersonate="true" userName="registry:HKLM\SOFTWARE\myapp\ASPNET_SETREG,userName" password="registry:HKLM\SOFTWARE\myapp\ASPNET_SETREG,password" /> The installation process is identical in WinXP and Win2003 with regard to setting this up. Does anyone have a idea as to what else needs to be configured to make this work on Win2003? Thanks!
- Next message: David Neff: "is IIS 5.0 safe?"
- Previous message: David Wang [Msft]: "Re: IIS6 change all site ip's"
- In reply to: Mark Petronic: "aspnet_setreg - works for WinXP but not on Win2003 server"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|