首页 > 解决方案 > 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#asp.net.netviewstate

解决方案


推荐阅读