Link to home
Start Free TrialLog in
Avatar of Moti Mashiah
Moti MashiahFlag for Canada

asked on

asp.net authentication.

Hi Guys,
I have asp.net application which published on a Saas environment. My customers are connecting to this application login page without any issue.

Recently I have one customer that complain that he can't login to the application and he is getting this error (see attachment.)
In my understanding its related to the viewstate and key machine, but still I can't find the real cause of this issue. Again it happens just for one customer.



Thank you.
Avatar of Misha
Misha
Flag of Russian Federation image

The firtst, look this good article from Microsoft. There are some cases from this problem and some solutions.
https://support.microsoft.com/en-us/help/2915218/resolving-view-state-message-authentication-code-mac-errors
The second you can add this code in your web.config file.
<pages enableeventvalidation="false" viewstateencryptionmode="Never"></pages>

Open in new window

It may be can help you.
The third, you can use  machineKey Generators from this link and add it to your web.config file. Also you can read about this in the first article.
https://www.codeproject.com/Articles/16645/ASP-NET-machineKey-Generator

P.S.
File, which you attached, is file with very small permission. It is very difficault to read text from it.
Avatar of Moti Mashiah

ASKER

Thank you for your answer.
I read all these articles regarding this issue, but still I missed understood how the connection works between the client to the server.

In my understanding the client send request (MAC) and the server generate for him a machine key which stored in his registry.
now what happens?

Please, can you explain the next part?
ASKER CERTIFIED SOLUTION
Avatar of Misha
Misha
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi MIsha,
In my case I don't have a farm.
I have just one individual server, and still it happens to me.
Thank you MIsha that was very helpful.