Error occurred during a cryptographic operation

Chan Kok Kuen 1 Reputation point
2022-01-27T09:12:52.483+00:00

Hi,

I'm currently facing this "Error occurred during a cryptographic operation" error on one of the production server.
I have the same application running on another server for the past 10 years, and never encounter the same issue.

Whenever this error occurred, I can make a quick fix by restarting the IIS server, and after the IIS restarted, everything will be back to normal.
But eventually it will happen again after a few hours later, it also happened to be running smoothly without hitting this error for the whole day.

I have tried by adding fix Machine Keys and Validation Method in the web.config, but it seems doesn't work for my situation.

Aside from this cryptographic error, I also noticed that there is a large amount of "The keyset is not defined." and "Invalid viewstate." error from the application log.
Appreciated if I can receive any help from you.

168908-cryptoerror.png

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,536 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,749 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.