出错:无法验证资料 System.Web.Configuration.MachineKey.GetDecodedData
以下是一张页面空闲 30 分钟以后提交出现的错误,请问该如何解决
'/' 应用程式中发生伺服器错误。
--------------------------------------------------------------------------------
无法验证资料。
描述: 在执行目前 Web 要求的过程中发生未处理的例外情形。请检阅堆叠追踪以取得错误的详细资讯,以及在程式码中产生的位置。
例外详细资讯: System.Web.HttpException: 无法验证资料。
原始程式错误:
在执行目前 Web 要求期间,产生无法处理的例外状况。如需有关例外状况来源与位置的资讯,可以使用下列的例外状况堆叠追踪取得。
堆叠追踪:
[HttpException (0x80004005): 无法验证资料。]
System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +196
System.Web.UI.LosFormatter.Deserialize(String input) +60
[HttpException (0x80004005): Authentication of viewstate failed. 1) If this is a cluster, edit <machineKey> configuration so all servers use the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. 2) Viewstate can only be posted back to the same page. 3) The viewstate for this page might be corrupted.]
System.Web.UI.LosFormatter.Deserialize(String input) +118
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +102
[HttpException (0x80004005): Invalid_Viewstate
Client IP: 127.0.0.1
Port: 4677
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)
ViewState: dDwtMTc0NTI3NzcyNjt0PDtsPGk8Mj47PjtsPHQ8O2w8aTwzPjs+O2w8dDxwPHA8bDxUZXh0Oz47bDxkZnJ0eWRmdHlkcjs+Pjs+Ozs+Oz4+Oz4+Oz4Yi5txlnlO/7mMe3SvylJmDOsL3g==
Http-Referer: http://localhost/001.aspx
Path: /001.aspx.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +448
System.Web.UI.Page.LoadPageViewState() +18
System.Web.UI.Page.ProcessRequestMain() +447
--------------------------------------------------------------------------------
版本资讯: Microsoft .NET Framework 版本:1.1.4322.2032; ASP.NET 版本:1.1.4322.2032