“无法验证数据” 我的 .net 2.0 应用程序中的 HttpException

发布于 2024-08-01 22:38:30 字数 729 浏览 6 评论 0原文

我从在 webfarm 中运行的 ASP .net 应用程序中收到此异常。

Exception Type: System.Web.HttpException
Exception Message: Unable to validate data.

---- Stack Trace ----
 System.Web.Configuration.MachineKeySection.GetDecodedData(buf As Byte[], modifier As Byte[], start As Int32, length As Int32, dataLength As Int32&)
 (unknown file): N 00294
 System.Web.UI.ObjectStateFormatter.Deserialize(inputString As String)
 (unknown file): N 00203

我已经按照本文在所有服务器中配置了静态计算机密钥: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q312906。 (所有服务器都有相同的机器密钥)

有什么想法吗?

我想知道为什么没有人对此做出回应? 只有我吗?

I am getting this exception from my ASP .net application running in a webfarm.

Exception Type: System.Web.HttpException
Exception Message: Unable to validate data.

---- Stack Trace ----
 System.Web.Configuration.MachineKeySection.GetDecodedData(buf As Byte[], modifier As Byte[], start As Int32, length As Int32, dataLength As Int32&)
 (unknown file): N 00294
 System.Web.UI.ObjectStateFormatter.Deserialize(inputString As String)
 (unknown file): N 00203

I have already configured static machine key in all the servers as per this article: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q312906. (All servers have the same machine key)

Any Ideas?

I wonder why no one is responding to this? Is it just me?

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

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

发布评论

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

评论(1

朦胧时间 2024-08-08 22:38:30

我不确定这个问题,但我认为这就是问题所在,取自 这篇文章< /a> :-

如果用户停止回发(通常通过
按后退按钮或停止按钮
在浏览器中),并非所有数据都是
发送回服务器。 当ASP.NET
验证视图状态,但失败。

我认为这个错误(如果你可以称之为
一)实际上是在 IIS 中,而不是 ASP.NET 中。
如果没有收到完整的回发,
IIS 不应将请求转发至
ASP.NET。

无论如何,好消息是这个错误
不影响用户体验
以任何方式。 他们导航远离
页面或停止回发并且
得到了他们所要求的。 这
服务器因响应而窒息,但是
这正是它应该做的。

我对这个建议不满意..但我不确定更好的解决方案:(它填满了我的错误日志:(

I'm not sure of the problem, but I think this is the issue, taken from this post :-

If a user stops a postback (usually by
hitting the back button or stop button
in the browser), not all the data is
sent back to the server. When ASP.NET
validates the viewstate, it fails.

I think the bug (if you can call it
one) is actually in IIS, not ASP.NET.
If the full postback isn't received,
IIS shouldn't forward the request to
ASP.NET.

Anyhow, the good news is this error
doesn't affect the user's experience
in any way. They navigated away from
the page or stopped the postback and
got exactly what they asked for. The
server choked on the response, but
that's exactly what it should do.

I'm not happy with this suggestion .. but I'm not sure of a better solution :( it's filling up my error logs big time :(

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