qablan89
qablan89

Reputation: 223

How to run asp.net application

How to run asp.net application with encrypted web.config ,is it possible note that ASP.NET application have a database with encrypted connectionstring and a "cannot read connection string " message is generated

Upvotes: 1

Views: 235

Answers (2)

Tahbaza
Tahbaza

Reputation: 9548

Use Windows DPAPI encryption. Here's a MS patterns and practices article that walks you through step by step.

Upvotes: 0

Henk Holterman
Henk Holterman

Reputation: 273179

Note that you should encrypt the web.config after deployment, not before.

The encryption with aspnet_regiis uses the target machine's Keys.

Upvotes: 3

Related Questions