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

时间:2022-11-21 03:30:17

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.

这是一个奇怪的。在Windows Server 2000上运行正常的Web应用程序在Windows Server 2003 R2上遇到间歇性错误。通过间歇性,我的意思是我自己和2个测试人员可以在Web应用程序中导航5分钟内找到错误。

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

错误总是“除以零” - 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.

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

1 个解决方案

#1


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?

......有一些理由说明问题发生的原因。您是否运行了可能导致问题的第三方组件?

#1


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?

......有一些理由说明问题发生的原因。您是否运行了可能导致问题的第三方组件?