视图状态验证失败.原因:视图状态提供的完整性检查失败.2 [英] Viewstate verification failed. Reason: The viewstate supplied failed integrity check. 2
问题描述
我收到了 Viewstate 验证失败的错误消息.原因:视图状态提供的完整性检查失败.并且在我回收 IIS 之前无法使用我的网站保存数据.我读到这与服务器场中的机器密钥有关.我不确定?这只是一个独立的网络服务器.任何想法如何纠正这个?
I have been getting the error message that Viewstate verification failed. Reason: The viewstate supplied failed integrity check. and data is unable to be saved using my website until I recycle IIS. I read that this has something to do with a machine key within a server farm. I am not sure? This is just a stand alone webserver. Any ideas how to correct this?
Event code: 4009 Event message: Viewstate verification failed. Reason: The viewstate supplied failed integrity check. Event time: 8/26/2013 3:30:58 PM Event time (UTC): 8/26/2013 7:30:58 PM Event ID: 6edb892ff6194dc48ef1182cee318e63 Event sequence: 4 Event occurrence: 1 Event detail code: 50203 Application information:
Application domain: /LM/W3SVC/2/ROOT-1-130220190575673097
Trust level: Full
Application Virtual Path: /
Application Path: C:\inetpub\wwwroot\website\
Machine name: Process information:
Process ID: 3636
Process name: w3wp.exe
Account name: Domain\account Request information:
Request URL:
Request path: /frmFoodAndBeverage.aspx
User host address:
User:
Is authenticated: True
Authentication Type: Negotiate
Thread account name: Domain\account ViewStateException information:
Exception message: Invalid viewstate.
Client IP:
Port:
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E; Tablet PC 2.0)
PersistedState: /wEPDwUKLTYzODM0NTY2Mg9kFgJmD2QWAgIDD2QWAgIDDw8WAh4EVGV4dAUPQmVsbCwgRG9uYWxkIEUuZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFIWN0bDAwJENvbnRlbnRQbGFjZUhvbGRlcjEkY21kTmV4dF5K3yklWc0DODJ8SLoJw+dFVUlgm/CktMaD1teAlLBl
Referer:
Path: /frmFoodAndBeverage.aspx Custom event details:
推荐答案
您可以检查问题是否出在机器验证码(MAC)上.设置 enableViewStateMac="false".如果不再出现视图状态错误,则问题与 MAC 功能有关.您也可以生成一个新的 machineKey 并将其复制到每个服务器上的应用程序的 web.config 中.这里有一些链接可能会有所帮助...machineKey 的解释http://msdn2.microsoft.com/en-us/library/w8h3skw9.aspx机器密钥生成器http://www.codeproject.com/aspnet/machineKey.asp
You can check if the problem is into the machine authentication code(MAC). Set enableViewStateMac="false". If you no longer get view state errors, the problem is related to the MAC feature. Also you can generate a new machineKey and copy it into the web.config of your app on each server. Here are some links that might help... explanation of machineKey http://msdn2.microsoft.com/en-us/library/w8h3skw9.aspx machineKey generator http://www.codeproject.com/aspnet/machineKey.asp
这篇关于视图状态验证失败.原因:视图状态提供的完整性检查失败.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!