间歇性“除以零” 经典 ASP 页面中的错误
这是一个奇怪的现象。 在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果你用谷歌搜索一下,你会发现很多人都有类似的问题。 我不确定我有一个好的答案,但这...
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?