How can I fix a MAC error in an asp.net application?

I have an ASP.NET application, everything works fine, but after a few minutes, when I click the button, it gives me this error:

Failed to validate viewstate MAC address. If this application is hosted on an Internet Farm or Cluster, make sure that the configuration settings are the same validation key and validation algorithm. AutoGenerate cannot be used in a cluster. Description: An unhandled exception occurred during the execution of the current network request. View the stack trace for more information about the error and where it originated from the code.

Exception Details: System.Web.HttpException: validating viewstate MAC address. If this application is hosted by a web farm or cluster, make sure the configuration is validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

How can i solve this?

+3
source share
2 answers

This blog post describes it in some detail:
http://www.eukhost.com/forums/f15/fix-validation-viewstate-mac-failed-6085/

In the past, I used this method:

  <system.web>
  <pages enableViewStateMac="false" />
  </system.web>
0
source

enableviewstatemac false , , , . , , persistence web.config, -, view_state.

0

All Articles