开发者

problem with encryption & decryption connectionStrings

开发者 https://www.devze.com 2023-02-17 10:08 出处:网络
I used the following command to encrypt my connection string but an error开发者_JS百科 ocurred \"The connection name

I used the following command to encrypt my connection string but an error开发者_JS百科 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消