RE: Encrypt connection string in Log4Net configuration

2016-01-26 Thread UniqueDisplayName
Thank you Joe Joe-3, that worked out perfectly for me. I really appreciate the advice/help. For those who may come across this in the future, here's what my code/config looks like. *Web.config* .. *Encryption Method in Code

Encrypt connection string in Log4Net configuration

2016-01-25 Thread UniqueDisplayName
I am trying to encrypt the log4net section to hide the username and password in the connection string. To do this I'm using .Net's implementation of encrypting the config file. The code is as follows: Configuration config = WebConfigurationManager.OpenWebConfiguration("~/"); ConfigurationSection s