Re: aspnet_setreg - works for WinXP but not on Win2003 server

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 04/01/04


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!


Relevant Pages

  • RE: WIndows Server 2003 SP2 does not respond to ctrl-alt-delete
    ... This problem only occurs before login. ... There is no registry key: ... If I just run mstsc to the server everything works fine. ... To perform a clean boot in Windows Server 2003, ...
    (microsoft.public.windows.server.active_directory)
  • Re: RIS Image of XP SP2 on a windows 2003 server
    ... 1-) Where do I change that registry key, on the server or on workstation i'm ... >> I have a weird problem with my RIS server. ... >> machine and install the image with pxe it works fine. ...
    (microsoft.public.windows.server.general)
  • Re: Windows Server 2003 Standard - DCOM Problems
    ... In order to resolve the problem, the following permissions were added ... Registry Key: HKEY_CLASSES_ROOT\CLSID ... When the server boots, it goes all the way to the CTRL+ALT+DEL window. ... desktop by disabling the Computer Browser service and the DCOM Server ...
    (microsoft.public.windows.server.general)
  • RE: windows 2000 networking on terminal service
    ... DCOM Client Hangs and Then Gives Error 429 ... This is caused by the ActiveX EXE Server trying to write to a registry key ... Allowing Setting and Querying Rights on the Given Registry Key ...
    (microsoft.public.win2000.networking)
  • Re: Cant connect to USB Hard Drive Connected to Computer On LAN
    ... get the error message in event log and the connection does not work: ... "The server's configuration parameter "irpstacksize" is too small for the ... Should I create a registry key? ... The server, ie Computer X, is the problem. ...
    (microsoft.public.windowsxp.network_web)