简体   繁体   中英

problem with encryption & decryption connectionStrings

I used the following command to encrypt my connection string but an error ocurred

"The connection name 'DatabaseConnectionString1' was not found in the applications configuration or the connection string is empty"

How can I encrypt it while keeping the application working?

The command used was

aspnet_regiis -pef "connectionStrings" "C:\Users\ANAS\Documents\Visual Studio 2008\WebSites\WebSite7"

What if I move the encrypted application to another computer? Will it work?

How can I encrypt it while keeping the application working?

You can't. If you change your web.config your application is initialized.

What if I move the encrypted application to another computer? Will it work?

It will not work. You can only encrypt config sections on the same machine you decrypted it before. That's the reason why this is secure: You can't take a config file away and decrypt it on another machine.

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