4

I am getting the below error when submitting an asp.net page using javascript. I have set

EnableEventValidation="false"
ViewStateEncryptionMode="Never"
EnableViewState="false"
EnableViewStateMac="false"

in my page directive

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.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Shyju
  • 214,206
  • 104
  • 411
  • 497
  • You're not in a webfarm scenarion ? Can you post the whole first line of your aspx file ? are you sure this is the one getting executed ? – remi bourgarel Jun 07 '11 at 16:06

2 Answers2

2

You are getting the error because your viewstate times out, a security feature. I wouldn't play around with the machine key, have you set the enableViewStateMac="False" right on your .aspx page?

Hamid
  • 41
  • 2
0

I occasionally get this error with sites I have hosted with GoDaddy. I do one or all of the following:

  • Recompile and reupload your binary file
  • Call the hosting company and tell them what's going on. Sometimes it's an issue on their end
  • Wait it out. Sometimes it will just go away. But still call your hosting company.

Also, see this question.

Community
  • 1
  • 1
Jason
  • 51,583
  • 38
  • 133
  • 185