ChatChat| Needs HelpQuestions? | E-Mail UsEmail Us
Garage Sale| Manage Account | Login | Register | Search Members
Search Blogs
Add a Blog Sort Blogs  by     in    order

display   items per page
Records Found! There are 1 blogs found.
 
Saturday, July 13, 2019 7:47:33 PM Click if you like this blog.5 Likes Click if you do not like this blog.2 Dislikes

Encrypt database connection string in web.config file for framework 4.0

Encrypt database connection string in web.config file for framework 4.0
By:  SolanMa
Country:  United States

  • Open the Command Prompt and enter the following command

    cd\windows\Microsoft.NET\Framework\v4.0.30319


  • Enter the following command (where C:\inetpub\wwwroot is the path to the folder where your application resides).

    aspnet_regiis.exe -pef connectionStrings C:\inetpub\wwwroot


  • If success you will get the results below.

     aspnet_regiis.exe command


  • Open your Web.config file. If you notice your database connection string is gone. It was replaced with the following code.

     Encrypted database connection string in web.config file


Add/View Comments   Add comments
  1 Comments posted
Views   2,075  Views