Validation of viewstate MAC failed- Server Error in '/' Application

拟墨画扇 提交于 2019-12-02 00:59:50

There are a few ways to fix this issue, but some solutions are better than others. The fastest way is usually to add the following to the web.config:

<pages enableEventValidation="false" viewStateEncryptionMode="Never">

The problem with the above solution is that you sacrifice some security. The next "quick fix" is to add the following to the web.config, but there are drawbacks to this as well:

<pages enableViewStateMac="false">

If this application is hosted by a web farm or is otherwise distributed across multiple web servers, you should probably steer clear of that option.

In my opinion, the best overall solution is offered here.

I believe that your problem is in App Pool "Idle timeout" field. You have to ask to your provider to change it to something greater... say 20mins

Take a look here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!