间歇性“除以零” 经典 ASP 页面中的错误

发布于 2024-07-19 23:32:25 字数 583 浏览 5 评论 0原文

这是一个奇怪的现象。 在 Windows Server 2000 上运行良好的 Web 应用程序在 Windows Server 2003 R2 上遇到间歇性错误。 我所说的间歇​​性是指我自己和 2 名测试人员可以在浏览 Web 应用程序后 5 分钟内找到错误。

错误始终是“被零除” - 800a000b

最常见的失败代码行位于包含文件中。 该行是:

Response.ExpiresAbsolute = Now() - 10

一旦我将其更改为:

Response.Expires = 0

我就无法再在该页面上收到错误。 但是,我随后开始在其他页面上收到错误。 到目前为止,我已经有以下几行代码报告了错误:

nSearchPos = CLng((nLBound + nUBound) / 2)

并且

next

我当前正在创建 Windows Server 2003 的“R1”实例,以查看是否可以在此服务器上重现它。

This is a strange one.
A web application which runs fine on Windows Server 2000, experiences intermittent errors on Windows Server 2003 R2.
By intermittent, I mean myself and 2 testers can find the error within 5 minutes of navigating around the web application.

The error is always "Division by zero" - 800a000b

The most common line of code it fails on is in an include file. The line is:

Response.ExpiresAbsolute = Now() - 10

Once I change it to:

Response.Expires = 0

I cannot get the error on that page anymore. However, I then start to get the error on other pages. So far, I've had the following lines of code report the error:

nSearchPos = CLng((nLBound + nUBound) / 2)

and

next

I am currently creating an 'R1' instance of Windows Server 2003, to see if I can reproduce it on this server.

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

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

发布评论

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

评论(1

﹂绝世的画 2024-07-26 23:32:25

如果你用谷歌搜索一下,你会发现很多人都有类似的问题。 我不确定我有一个好的答案,但这...

http://blogs.msdn.com/dougste/archive/2008/11/12/random-and- unexpected-exception-flt-divide-by-zero-and-exception-flt-invalid-operation.aspx

...问题发生的背后有一些原因。 您是否运行了可能导致该问题的第 3 方组件?

If you Google for this you'll see lots of people with similar issues. I'm not sure I have a good answer, but this...

http://blogs.msdn.com/dougste/archive/2008/11/12/random-and-unexpected-exception-flt-divide-by-zero-and-exception-flt-invalid-operation.aspx

... has some reasoning behind why the problem occurs. Do you have 3rd party components running that could be causing the issue?

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