Encrypting the configuration file when using Visual Studio 2010 'Web Deploy'

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.

+4
source share
1 answer

I always run it manually on the server and consider this a common practice. However - you can enable runCommand using a format similar to:

http://forums.iis.net/p/1173149/1961663.aspx

Also make sure that you are executing the correct permissions.

-1
source

All Articles