`Validation of viewstate MAC failed` Hatası
"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."
ASP.NET'te çalışırken karşılaşabileceğiniz can sıkıcı hatalardan birisi de
"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."
hatasıdır.
Çözümü de kolaydır:
web.config'te <system.web>..</system.web> arasında <pages... tagını bulup şu eklemeleri yapın:
<pages enableEventValidation="false" validateRequest="false" enableViewStateMac="false" > ... ... </pages>
Hadi geçmiş olsun :)
#ASP-NET #Validation-of-viewstate-MAC-failed #hata-çözüm