Unable to Read Encrypted DB Configuration
- Last UpdatedJun 25, 2024
- 1 minute read
The database section in the Web.config is encrypted so that the the services/api do not have passwords in clear text. If your site is unable to decrypt the information in the Web.config file, this may be because the Application Pool Identity lacks access to the encryption key used to encryption and decryption. Run the command below and replace the "DOMAIN\myuserid" with your Application Pool Identity:
aspnet_regiis -pa "NetFrameworkConfigurationKey" "DOMAIN\myuserid"
For information, refer to http://msdn.microsoft.com/en-us/library/vstudio/dtkwfdky(v=vs.100).aspx.