Can Encrypt web.config but website can't read values

S

-Steve-

I've encrypted the appsettings in my web.config file using the following
command:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -pe
"appSettings
" -app "/passwordReset"


Once I do that though my webapp can no longer read the values out of the
web.config file. I'm retrieving the values using
System.Configuration.ConfigurationManager.AppSettings[value]. Shouldn't
asp.net 2.0 decrypt the values on the fly? Do I need to be doing somethign
else?

Also if I run aspnet_regiis.exe -pd . . . it decrypts my web.config file
just fine and everything works as it should.


Steve Evans
 

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top