Reading Time: < 1 minute

After deployed the SharePoint apps and access the site apps throws cryptographic operation error randomly.

 

cryptographicOperation

After troubleshoot we found that in IIS the Machine key for the apps set to automatically generate on run time.

Solution:

we updated the changes, by setting unique machine keys for all apps and they worked fine.

See the image below

machinekey

 

we have generated unique machine key for each app and made sure each app has the same machine key in all web front ends. Then it is working for all apps without error.

for Both Validation Key and Decryption Key

Good Luck