how to encrypt web.config during web application deployment


I am developing a web application using ASP.NET, VS 2008, Framework 3.5
I want to encrypt my web.config at the end of application installation (Installer.Commit event).
How do I do this ?
0
vu3lmg
5/1/2009 8:45:39 PM
📁 asp.net.visual-studio-2005
📃 7760 articles.
⭐ 0 followers.

💬 3 Replies
👁️‍🗨️ 1317 Views


0
budugu
5/1/2009 9:06:30 PM

If you want to encrypt your web.config you can have a look at this link http://weblogs.asp.net/scottgu/archive/2006/01/09/434893.aspx

Faraz Shah Khan
MCP, MCAD.Net, MCSD.Net, MCTS-Win/Web, MCPD-Web
Blog
0
farazsk11
5/1/2009 9:07:53 PM

            
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\"");
-----------------------------------------------------------------------------------

            
Thanks for the help

          
0
vu3lmg
5/4/2009 6:53:52 PM
Reply: