Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

Encrypting and Decrypting AppSettings in Enterprise Console

Encrypting and Decrypting AppSettings in Enterprise Console

  • Last UpdatedJul 09, 2025
  • 1 minute read

To protect sensitive configuration values in the appSettings section of the web.config file by encrypting them, and to allow editing by decrypting them when needed.

Location of web.config:

C:\Program Files\AVEVA\WorkTasks\Web\EnterpriseConsole\web.config

Prerequisites

  • Open Command Prompt as Administrator.

  • Navigate to the folder: cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319

To Encrypt the AppSettings:

aspnet_regiis -pe "appSettings" -app "/EnterpriseConsole" -site 2 -prov "DataProtectionConfigurationProvider"

To Decrypt the AppSettings:

aspnet_regiis -pd "appSettings" -app "/EnterpriseConsole" -site 2

Notes:

- The site ID 2 refers to the AVEVAWorkTasksSites site as seen in the IIS Manager.

- Ensure you remove the <clear /> tag from the appSettings section before encrypting, if it exists.
- You must re-encrypt the section after making changes.

TitleResults for “How to create a CRG?”Also Available in