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
  • 36,338
  • 80
  • 323
  • 498

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
  • 36,338
  • 80
  • 323
  • 498