Reading Time: < 1 minute

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



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


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

See the image below



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