

Building and Running an ASP.NET Web Client Application › Support for Encryption › Edit Encrypted Sections of Configuration Files › Edit the Encrypted connectionStrings Section in Application.config
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:
- Copy the Application.config file to a temporary location and rename the file as web.config.
- Decrypt the connectionStrings section in the temporary web.config file with the following command:
aspnet_regiis -pdf connectionStrings <web.config physical directory>
- Edit the temporary web.config file and make the required changes.
- Re-encrypt the connectionStrings section in the temporary web.config with the following command:
aspnet_regiis -pdf connectionStrings <web.config physical directory>
- Copy the contents of the temporary web.config file to the original Application.config file.
Copyright © 2013 CA.
All rights reserved.
 
|
|