I use the Publish Web UI dialog of Visual Studio 2010 to deploy my site using Web Deploy, as described in this link http://weblogs.asp.net/scottgu/archive/2010/07/29/vs- 2010-web-deployment.aspx
In my web configuration file, I would like to encrypt the section and thought about using either the -pe or -pef option of aspnet_regiis.exe utility, which exists in the framework folder.
What I donβt understand, can I get "Web Deploy" to call aspnet_regiis.exe on the server after deployment, or is it common practice to encrypt a file that does not use machine keys and deploy it?
Any advice would be greatly appreciated. Ideally, I would continue to use Web Deploy for convenience.
source share