Previous Topic: Edit the Encrypted sessionState Section in web.configNext Topic: Edit the Encrypted connectionStrings Section in Application.config


Edit the Encrypted connectionStrings Section in web.config

The user can edit the encrypted connectionStrings sections in web.config if the user has administrative privileges.

Follow these steps:

  1. Decrypt the connectionStrings section by entering one of the following command:
    aspnet_regiis -pdf connectionStrings c:\inetpub\wwwroot\myapp
    aspnet_regiis -pd connectionStrings -app /myapp
    
  2. Edit the web.config file and make the required changes.
  3. Re-encrypt the connectionStrings section by entering one of the following commands:
    aspnet_regiis -pef connectionStrings c:\inetpub\wwwroot\myapp
    aspnet_regiis -pe connectionStrings -app /myapp