WebResource.axd - 无效的视图状态

发布于 2024-07-23 05:16:40 字数 601 浏览 2 评论 0原文

我不断在错误日志中看到这些错误。 我有什么想法可以弄清楚它来自哪里,或者更好地解决问题吗?

System.Web.HttpException:无效的视图状态。 在 System.Web.UI.Page.DecryptString(String s) at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext 上下文)在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep 步骤, 布尔& 同步完成)

更新 这是我到目前为止所尝试的 - 我们正在运行单个 Web 服务器(无服务器场)

  • 将机器密钥值添加到 web.config

I keep seeing these errors in our error log. Any ideas how i can figure out where its coming from, or better yet how to fix the problem?

System.Web.HttpException: Invalid viewstate. at
System.Web.UI.Page.DecryptString(String s) at
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext
context) at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)

Update
Here is what I have tried so far - we are running a single web server (no farm)

  • Adding a Machine Key value to web.config

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

甜妞爱困 2024-07-30 05:16:40

当谷歌(和其他搜索蜘蛛)对我的网站之一建立索引时,我遇到了这个问题。 我必须在 /robots.txt 中放置必须忽略 webresource.axd 文件,此后错误就停止了。

我们使用 ELMAH,因此我们能够看到浏览器版本 请求该文件,结果是 GoogleBot。

I had this problem when Google (and other search spiders) indexed one of my sites. I had to place in /robots.txt that the webresource.axd files had to be ignored, and the error stopped since.

We are using ELMAH, so we were able to see the browser version that requested the file, and it ended being GoogleBot.

满栀 2024-07-30 05:16:40

截至 2009 年 6 月 14 日,MS 有一个针对此问题的开放错误报告:

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=434997&wa=wsignin1.0

仙女山的月亮 2024-07-30 05:16:40

我现在正在遇到一模一样的问题。 MS 确认了该错误 (https:// connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=434997&wa=wsignin1.0)是有道理的,但是,微软声称这是 IE8 问题,但我发现使用任何版本 IE 的用户( 6,7 和 8) 遇到了这个问题。

没有 Firefox 用户遇到此问题,因此似乎确认这是 MSIE 问题。

I am having the exact same problem. The bug confirmed by MS (https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=434997&wa=wsignin1.0) make sense however, MS claims this is an IE8 issue but I find that users with any version of IE (6,7 & 8) are having this problem.

No Firefox users are experiencing it so it seems to confirm it is a MSIE issue.

未蓝澄海的烟 2024-07-30 05:16:40

我已经添加了 Microsoft 建议的响应标头(ContentType 和 CharSet),但这些错误仍然不断出现。值得庆幸的是,它似乎对最终用户没有任何影响,但在日志。

I've added the Response headers (ContentType and CharSet) that Microsoft suggested, but still these errors keep coming in. Thankfully it doesn't appear to make any difference to the end-user, but it's driving me batty seeing these errors in the log.

五里雾 2024-07-30 05:16:40

这看起来像是当视图状态无法解码时出现的错误 - 如果请求是使用其他人的视图状态提交的。

您可以通过使用 wget 记录 asp.net 页面来复制它。 在浏览器中打开本地保存的页面并单击链接。 当它到达服务器时,它将尝试解码已保存页面中的视图状态,但失败,您将看到该错误。

我在做一些反网络钓鱼的工作时遇到了这个问题。

That looks like the error you get when the viewstate can't be decoded - if a request is submitted with someone else's viewstate.

You can duplicate it by recording an asp.net page with wget. Bring that locally saved page up in your browser and click on a link. When it goes to the server, it will try and fail to decode the viewstate in the saved page and you'll see that error.

I ran across this when I was doing some anti-phishing stuff.

清醇 2024-07-30 05:16:40

更新:微软宣布针对 IE 8 的以下错误修复修复了此问题:
http://blogs.msdn。 com/ieinternals/archive/2010/04/01/IE8-Lookahead-Downloader-Fixed.aspx

Update: Microsoft announced that the following bug fix for IE 8 fixes this problem:
http://blogs.msdn.com/ieinternals/archive/2010/04/01/IE8-Lookahead-Downloader-Fixed.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文