Encrypt ConnectionString
Step 1: Run the Command Prompt as an Administrator
Step 2: Go to the location:C:\Windows\Microsoft.NET\Framework\v4.0.30319 by entering the following command at the command prompt.
cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
Step 3: Run the following command at the command prompt.
aspnet_regiis -pef "connectionString" "C:\Users\user\Documents\Visual Studio 2013\WebSites\WebSite1"
Here we are running the aspnet_regiis command to encrypt the connection string and we have used -pef command to encrypt the configuration section called as "connectionString".
Step 2: Go to the location:C:\Windows\Microsoft.NET\Framework\v4.0.30319 by entering the following command at the command prompt.
cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
Step 3: Run the following command at the command prompt.
aspnet_regiis -pef "connectionString" "C:\Users\user\Documents\Visual Studio 2013\WebSites\WebSite1"
Here we are running the aspnet_regiis command to encrypt the connection string and we have used -pef command to encrypt the configuration section called as "connectionString".
No comments: