页面上时,视图状态MAC验证失败20分钟以上 [英] Validation of viewstate MAC failed when on page for 20+ minutes

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

问题描述

如果您打开托管在我们的服务器上的网站的一个网页,离开它20分钟,然后提交一个表单,视图状态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.

莫不是这有什么可能的原因?

What possible reasons could there be for this?

推荐答案

这是我们花一段时间才能找到这个问题的答案,因为我被告知,我是比较它的另一个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. 右键单击并选择Advanace设置

  5. 设置空闲超时(分钟)属性设置为0或增加至30多分钟

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

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