简体   繁体   中英

ASPNET_REGIIS Encrypted connection string working in one server, but not working in other sever

Encrypted the connection strings in Web.config using ASPNET_REGIIS -pef / -pdf utility,

The Connection in web.config working fine in one server but not working on second similar server when copied.

Both are Windows Server 2016 and have .Net framework 4.7

Decryption command on second server saying parameter missing, where as same command with same web.config file works fine in first server

ASPNET_REGIIS command pef/pdf are specific to machine/server. We cannot copy encrypted web.config form one server to other server.

::Encryption
ASPNET_REGIIS -pdf "connectionStrings" "D:\webroot"
::Decryption    
ASPNET_REGIIS -pef "connectionStrings" "D:\webroot" 

Need to run encryption commands separately in each servers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM