I am trying to use ASPNET_SETREG.exe to encrypt my username and password and
store them in the registry. I am running Windows 2003 Server RC2. I downloaded
ASPNET_SETREG.exe from Microsoft’s website.

I first ran the utility to encrypt my username and password:
c:\Tools>aspnet_setreg.exe -k:SOFTWARE\MY_SECURE_APP\identity -u:"MyPC\MyUser"
-p:"password"

I also included the identity information in my web.config file:
<identity impersonate="true"
userName="registry:HKLM\SOFTWARE\MY_SECURE_APP\identity\ASPNET_SETREG,userName"

password="registry:HKLM\SOFTWARE\MY_SECURE_APP\identity\ASPNET_SETREG,password"
/>

When I try to run the web application, I get the following error:
Error reading the password from the registry.


Thanks,
Angela