0

我正在为服务器部署尝试 web.config 加密。我正在使用 aspnet_regiis.exe 来加密连接字符串。

在这个项目中,有多个用于数据库调用的数据集。

如何从一个地方为所有这些数据集设置解密,因为我无法为每个数据集设置解密,也无法在开发过程中保留加密文件。加密后

<connectionstring></connectionstring>

转换为

<encrypteddata></encrypteddata>

所以应用程序在

  ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Connection = new global::System.Data.SqlClient.SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString)

在键入的数据集中,因为它无法应用程序服务,因为现在它在加密数据中被加密

4

0 回答 0