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
Post a Comment