Encrypt/Decrypt web.config

2019-09-07 06:57发布

I need to Encrypt the web.config file after publish it to the web server. The problem is, if I use asp_reg, I won't be read by the other machine/server. Does anyone have an idea how to do this? Some of my page is using SQLDataSource to read the connectionstring in the web.config file. Is this thing won't work if the web.config encrypted?

Thank you.

1条回答
冷血范
2楼-- · 2019-09-07 07:53

SQLDataSource will work. Content of Web.config will be decrypted automatically by ASP.NET while processing this file.

查看更多
登录 后发表回答