Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 13th, 2012  |  syntax: None  |  size: 0.46 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Encrypt custom config section in ASP.NET using aspnet_regiis
  2. <configSections>
  3.     <section name="customSettings" type="System.Configuration.NameValueSectionHandler" />
  4.   </configSections>
  5.  
  6.   <customSettings configSource="configcustomSettings.config" />
  7.        
  8. aspnet_regiis -pe customSettings -site 4 -app /
  9.        
  10. Encrypting configuration section...
  11. Succeeded!
  12.        
  13. aspnet_regiis -pe "connectionStrings" -app "/MachineDPAPI" -prov "DataProtectionConfigurationProvider"