You get the following message when the QLM Management Console connects to the License Server or when calling any QLM Pro API:
"Failed to decrypt data"
QLM encrypts data when communicating between the client and the web service. Data is encrypted using the communicationEncryptionKey and/or adminEncryptionKey.
Note that if you are using SSL, data is additionally encrypted by the SSL layer.
If you get the mentioned error, verify that te communicationEncryptionKey and adminEncryptionKey are the same in the following locations:
- Web server config file: web.config
- In the QLM Management Console
- In QLM v4: QLM Console / Tools / Options : CommunicationEncryptionKey
- In QLM v5+: QLM Console / Manage Keys / Sites / Encryption Keys: CommunicationEncryptionKey / AdminEncryptionKey
- In any of the QLM .NET User Controls, the QlmCommunicationEncryptionKey property
- In the constructor of LicenseValidator class
- Any time you instantiate a QlmLicense object.
- In the settings.xml file generated by the Protect Your Application wizard (3rd tab).
If you are getting the error when calling the QLM API, make sure you set the CommunicationEncryptionKey or AdminEncryptionKey property of the QlmLicense object.
You must set the CommunicationEncryptionKey when calling the QLM Web Service Application API.
You must set the AdminEncryptionKey when calling the QLM Web Service Management API. It is not recommended to set the AdminEncryptionKey in your application nor to call QLM Web Service Management API methods from within your application. The QLM Web Service Management API is designed to be called from your server.
If you are getting the error when using the QLM .NET Control, make sure you set the control's QlmCommunicationEncryptionKey property.
Article is closed for comments.