Author: PeteAtPaychex | Posted on: 11/24/2008 10:50:33 AM | Views : 1175

 

I am trying to encrypt a section of the web.config file programmatically, using ConfigurationSection.SectionInformation.ProtectSection(), but every time I get an InvalidOperationException with the message "This operation does not apply at runtime."  I have tried several provider names as well as null (in order to get the default provider), but I get the same error every time.  Any input would be greatly appreciated.
 Thanks


...

Go to the complete details ...