Decrypt Appsettings Error - Crypto Operation Failed: The Parameter Is Incorrect

Error when attempting to decrypt appsettings.json file.

When attempting to decrypt the appsettings.json file, the following error is thrown

Root Cause: Change is made to the encrypted file, prior to decrypting.


Resolution:

  • Restore the encrypted file from a backup and attempt the decryption again.