PC Review


Reply
Thread Tools Rate Thread

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

 
 
-Steve-
Guest
Posts: n/a
 
      18th Aug 2006
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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Encrypt a Key in app.config Ryan Microsoft VB .NET 1 12th Mar 2010 09:20 PM
Encrypt ConnectionString in app.config Peter Larsen [CPH] Microsoft Dot NET Framework 7 18th Sep 2009 10:28 AM
read web.config values Claudia Fong Microsoft ASP .NET 2 15th Oct 2007 11:47 AM
values in web.config in subfolder not read interuser Microsoft ASP .NET 1 24th Apr 2007 06:16 PM
How to read Default Values from App.Config for User Settings? herceg@im.ns.ac.yu Microsoft Dot NET Framework Forms 1 16th Apr 2007 02:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:09 PM.