c# - Viewstate 验证失败 Asp.net
问题描述
我遇到了这个错误,我不知道该怎么做才能确定原因,我查看了 Stackoverflow 并检查了 web.config 文件,但我根本没有 enableViewStateMac="false"。
Event code: 4009
Event message: Viewstate verification failed.
Reason: The viewstate supplied failed integrity check.
Event time: 1/22/2019 2:53:36 PM
Event time (UTC): 1/22/2019 7:53:36 PM
Event ID: 5ffacfa116224c9f8f516ead8a89cc55
Event sequence: 378
Event occurrence: 1
Event detail code: 50203
Application information:
Application domain: /LM/W3SVC/2/ROOT-1-131926597583461452
Trust level: Full
Application Virtual Path: /
Application Path: ...........
Machine name: .............. Process information:
Process ID: 6624
Process name: w3wp.exe
Account name: IIS APPPOOL\.............. Request information:
Request URL: ............../qConsole/CampaignGroup-Launch.aspx
Request path: /qConsole/CampaignGroup-Launch.aspx
User host address: ..............
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOL\..............
注意:这发生在每个页面中,不仅在特定页面中,更具体地说,当页面正在调用 Db 或进行 SQL 批量插入(2300 行)或执行多个长时间的过程时分钟。我还仔细检查了 web.config 文件中的 machineKey 标记,之前它没有抛出任何错误。
解决方案
推荐阅读
- c++ - 从 2 个 std::maps 获取公共密钥的更好方法
- amazon-web-services - 无法使用 AWS CLI 为通过 Amazon SNS 的 SMS 设置发件人 ID
- mysql - 如何选择派生表中具有最大值的所有行?
- rust - Serde tag = x,但将标签保留在结构中
- git - 如何防止 git 使用 git add 暂存已删除的文件?
- excel - Excel VBA:在文件夹和子文件夹中搜索 Excel 中列出的部件号
- c - 为什么一帧的“rbp”与前一帧的“rsp”不匹配?
- javascript - 使用 CORS 访问 HTTP Cookie
- r - 如何使用 for 循环创建函数以在单独的页面上使用 ggplots 获取多个 pdf 文件(每个 id 唯一)
- javascript - 预渲染 d3 和关键函数