简体   繁体   中英

Validation of Viewstate MAC failed (Shared hosting Plesk)

在此处输入图像描述 I am using plesk'shared hosting server to host my website. Constantly getting ViewState MAC failed error

Plesk won't be able to provide any Machine Key. As it is shared hosting.

I have also attached the screenshot. please help.

Earlier This issue was coming in one page only. I have resolve it by converting it to JavaScript and ajax call in order to Stop AutoPostBack.

But now this is coming in many pagaes.

Add following link in your web.config file.

Above line should be included within section.

OR

if you don't want this solution to implemented on project level then you can add these attribute to the page(Top most line of HTML view) directive of the page which is creating issue.

That means you have to add enableEventValidation="false" viewStateEncryptionMode="Never" in page directive.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM