无法打开 RSA 密钥容器 app.config

The RSA key container could not be opened app.config

我使用本手册加密 app.config Encrypt connection string in app.config

我将 APP 文件放到共享文件夹中,我的域帐户可以正常使用,但域中的其他用户却不行。

所以我需要为所有用户使用加密的 app.config 连接字符串部分。

可以吗?

终于用上了这个方法How to in-code supply the password to a connection string in an ADO.Net Entity Data Model

public MyDatabaseContainer() : base("name=MyDatabaseContainer")
{
    Database.Connection.ConnectionString = Database.Connection.ConnectionString.Replace("XXXXX","realpwd");
}