• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 541
  • Last Modified:

how to encrypt web.config during web application deployment

I am developinga web application using ASP.ENT, VS 2008, Framework 3.5
I wan to encrypt my web.config at the end of application installation (Installer.Commit event).
How do I do this ?
0
vu3lmg
Asked:
vu3lmg
1 Solution
 
bmatumburaCommented:
0
 
vu3lmgAuthor Commented:
OK guys I found the solution.
I call Process.Start with parameters as under.
-----------------------------------------------------------------------------------
Process.Start("C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\aspnet_regiis.exe",  "-pe \"connectionStrings\" -app /PARC -prov \"DataProtectionConfigurationProvider\"");
-----------------------------------------------------------------------------------
0

Featured Post

The Firewall Audit Checklist

Preparing for a firewall audit today is almost impossible.
AlgoSec, together with some of the largest global organizations and auditors, has created a checklist to follow when preparing for your firewall audit. Simplify risk mitigation while staying compliant all of the time!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now