Failed To Decrypt Using Provider RsaProtectedConfigurationProvider. Error "Message From The Provider. The Parameter Is Incorrect"

Unable to decrypt Orchestrator config file. Failed to decrypt using provider RsaProtectedConfigurationProvider Error message from the provider The parameter is incorrect.

Try to decrypt the web.config file as per the KB - How To Encrypt And Decrypt A Section Of Web Config File In Orchestrator?

  1. During the decryption, if the below issue exists then check

  • aspnet_regiis -pd "secureAppSettings" -site "UiPath Orchestrator" -app "/"

Microsoft (R) ASP.NET RegIIS version 4.0.30319.0

Administration utility to install and uninstall ASP.NET on the local machine.

Copyright (C) Microsoft Corporation. All rights reserved.

Decrypting configuration section...

Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error message from the provider: The parameter is incorrect.

(C:\Program Files (x86)\UiPath\Orchestrator\web.config line 267)

The parameter is incorrect.

  1. Verify if the below secureAppSettings field is already decrypted the EncryptionKey, delete the below session.

<EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element"

xmlns="http://www.w3.org/2001/04/xmlenc#">

Rsa Key

QXXEKA+LyZsSGVZrQo8L3tN8ktoo8C8Ea6dSoLs1SvVLWB+JnCAA4l95DBzjOHOgHTSymBVUvitgFSkQgkNXWJYiC9puJr8JlGtz8rR2IZZUQbrgU66hFbfzsBHQCZD2UttDf3+Ir22LNXMdvinbISH55C3VtE2Zp3aD10C+0bkf7D4zaVHc/FEz/cH43FNG9f2TvPDrU5wB81cSQFcFlqcTwaiGSzWQUcaLAA2tRdbc2bwWP64XzzWUOF7V49WjsxSsR6kKuI+PTdpkn6qiD/VWdJQZKAxdQtIPNL1CESovccKe7LKVXYIzr7JR2aUgmPU6QPovrp/bRoQjrxqtMg==

C/08nIWEsv3fCMBgpeOSAzSY23IKnAVl1qKWNvziC2Vg5Im67ObkhVL0/AxwTItU4z7sMZpZWOqBFQOUzc8h1nAbAsAh9ZJeXdt8pamBccC0rDgKtOqGAs0u5iSR+4XG+WK5lvtjMkL+9eofyOMsdOUrnZvm/DaL10SqVy4V0P2QcZbhDTmFtg==


  1. Rebuild this secureAppSettings session as below and now do the upgrade Orchestrator, check the Orchestrator application and this will work.



Orchestrator version 2020.10+
If in the latest version, then there should be uipath.orchestrator.dll.config file in this file, update the same as per the above secureAppSettings session.