• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 543
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

How do you know if your security is working?

Protecting your business doesn’t have to mean sifting through endless alerts and notifications. With WatchGuard Total Security Suite, you can feel confident that your business is secure, meaning you can get back to the things that have been sitting on your to-do list.

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