Previous Topic: Edit the Encrypted connectionStrings Section in web.configNext Topic: Run ASP.NET Web Client


Edit the Encrypted connectionStrings Section in Application.config

The user cannot directly edit the connectionStrings section in Application.config. However, the user can copy Application.config to a temporary file, rename the file as web.config, and make the required edits.

Follow these steps:

  1. Copy the Application.config file to a temporary location and rename the file as web.config.
  2. Decrypt the connectionStrings section in the temporary web.config file with the following command:
    aspnet_regiis -pdf connectionStrings <web.config physical directory>
    
  3. Edit the temporary web.config file and make the required changes.
  4. Re-encrypt the connectionStrings section in the temporary web.config with the following command:
    aspnet_regiis -pdf connectionStrings <web.config physical directory>
    
  5. Copy the contents of the temporary web.config file to the original Application.config file.