Click here to Skip to main content
15,909,051 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Sir,

I have hosted an ASP.Net website developed in Framework 4.0. As I try working with them they are throwing error like:

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.


Sometimes ago this problem was not coming while hosting such websites.

Can you please help me out to fix this problem.

Thanks

What I have tried:

I have tried adding the following code in Web.Config file but no use.

<pages enableViewStateMac="true"/>
Posted
Updated 19-Oct-19 22:07pm

1 solution

There is a rather long-winded explanation here: https://support.microsoft.com/en-us/help/2915218/resolving-view-state-message-authentication-code-mac-errors[^] ,
but I think you simply need to upgrade your Windows / IIS version to a newer version.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900