c# - asp.net Web deploy: add MSDeployEnableWebConfigEncryptRule in .pubxml to encrypt appSettings -


i publishing asp.net web application using web deploy , need encrypt connectionsstrings , appsettings in web.config file. added <msdeployenablewebconfigencryptrule>true</msdeployenablewebconfigencryptrule> in .pubxml, connectionstrings encrypted not appsettings. need encrypt appsettings well. can encrypt appsettings making changes in .pubxml or need manually using aspnet_regiis.exe?

webdeploy can encrypt connection string. if want encrypt appsetting or other sections, can try using aspnet_regiis command line.

aspnet_regiis -pe "elementname" -app "/sampleapplication"

ref: (http://forums.iis.net/t/1223409.aspx?encrypting+any+section+of+web+config)


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

excel - I can't get the attachement of the email PHP -

node.js - Express and Redis - If session exists for this user, don't allow access -