Dcrypt Web.config file

Dcrypt Web.config file

Post by UGFyYW12ZW » Sun, 08 Jul 2007 00:02:05

Hi ,

I am able to encrypt <identity> element in web.config.

I use <identity> element userName (domain\Service account) and password to
make connection to the database. As values in the web.config file are
I am not able to run my project.

Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error
message from the provider: The RSA key container could not be opened.

Let me know what modification I have to do, to dcrypt the value of
web.config so that identity username makes a connection with database.

Dcrypt Web.config file

Post by Dominick B » Tue, 10 Jul 2007 16:15:56

you have to give the worker process account read access to the key container
(by default thats NETWORK SERVICE)

use the aspnet_regiis tool for that ...
Dominick Baier ( http://www.yqcomputer.com/ )

Developing More Secure Microsoft ASP.NET 2.0 Applications ( http://www.yqcomputer.com/ )