ASPNET_SETREG - Error reading the password from the registry

G

Guest

I'm trying to use aspnet_setreg to encrypt user names & password used in the
web.config file for use in the indentity element. When the website runs I get
the message 'Error reading the password from the registry'.

I'm using Windows XP SP2, Framework 1.1 . The code in the web.config file is :

<identity impersonate="true"
password="registry:HKLM\SOFTWARE\MyCompany\MyApp\Website\Identity\ASPNET_SETREG,password
userName="registry:HKLM\SOFTWARE\MyCompany\MyApp\Website\Identity\ASPNET_SETREG,userName"
/>

I've given the ASPNET account read permissions to the registry keys.

What have I missed ???

Thanks for your help.
 
G

Guest

I am having the same problem and have not found a solution. Is there any one out there who knows how to resolve this error?
I'm trying to use aspnet_setreg to encrypt user names & password used in the
web.config file for use in the indentity element. When the website runs I get
the message 'Error reading the password from the registry'.

I'm using Windows XP SP2, Framework 1.1 . The code in the web.config file is :

<identity impersonate="true"
password="registry:HKLM\SOFTWARE\MyCompany\MyApp\Website\Identity\ASPNET_SETREG,password"
userName="registry:HKLM\SOFTWARE\MyCompany\MyApp\Website\Identity\ASPNET_SETREG,userName"
/>

I've given the ASPNET account read permissions to the registry keys.

What have I missed ???

Thanks for your help.

User submitted from AEWNET (http://www.aewnet.com/)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top