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 -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -