当在页面上超过 20 分钟时,viewstate MAC 的验证失败 [英] Validation of viewstate MAC failed when on page for 20+ minutes

查看:20
本文介绍了当在页面上超过 20 分钟时,viewstate MAC 的验证失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您在我们服务器上托管的网站之一上打开网页,将其放置 20 分钟,然后提交表单,则会出现 Viewstate MAC 验证失败. 错误.

If you open a web page on one of the websites hosted on our server, leave it for 20 minutes and then submit a form, a Validation of viewstate MAC failed. error occurs.

这可能有什么原因?

推荐答案

我们花了一段时间才找到答案,因为我被告知我与之比较的另一台 IIS7 服务器已经以相同的方式设置,同一个人.

It's taken us a while to find the answer to this as I had been informed that another IIS7 server I was comparing it to had been setup in the same way, by the same person.

结果表明收到此错误的网站的服务器已使用 Plesk 设置,而另一台服务器尚未设置.

It turns out the server with the websites which were receiving this error had been setup using Plesk, whereas the other server had not been.

似乎 Plesk 将应用程序池的空闲超时设置为 5 分钟,这就是导致此错误的原因.

It seems Plesk sets the Idle-Timeout to 5 minutes on the application pools, which is what was causing this error.

要更改此设置,请执行以下操作:

To change this do the following:

  1. 打开 IIS
  2. 点击应用程序池节点
  3. 找到您的 Web 应用程序的应用程序池
  4. 右键单击并选择高级设置
  5. 将空闲超时(分钟)属性设置为 0 或增加到 30 分钟以上

这篇关于当在页面上超过 20 分钟时,viewstate MAC 的验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆