Should I ignore the occasional Invalid viewstate error?

后端 未结 10 672
小鲜肉
小鲜肉 2020-12-07 08:42

Every now and then (once every day or so) we\'re seeing the following types of errors in our logs for an ASP.NET 3.5 application

  • Invalid viewstate
  • Inv
10条回答
  •  忘掉有多难
    2020-12-07 09:19

    According to Wayne Walter Berry in this blog post another culprit can be using the XHTML doctype in IE8 without having XHTML compliant markup on the page. This can cause IE8 to send scrambled parameters to scriptresource.axd and throw the invalid viewstate exception.

    He recommends making sure all javascript blocks are wrapped with // or simply changing the doctype (which could cause other css/styling problems on your page).

提交回复
热议问题