0

I encrypt app.config using this manual Encrypt connection string in app.config.

I put the APP files to the shared folder and it works fine for my domain account but not for other users of the domain.

So I need to use encrypted app.config connection string sections for all users.

Is it possible to do?

NoWar
  • 34,755
  • 78
  • 302
  • 475

1 Answers1

0

Finally I have used this method 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");
}
NoWar
  • 34,755
  • 78
  • 302
  • 475