title: Intermittent "Division by zero" error in classic ASP pages
body: <p>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.</p>
  
  <p>The error is always "Division by zero" - 800a000b</p>
  
  <p>The most common line of code it fails on is in an include file. The line is:</p>
  
  <pre><code>Response.ExpiresAbsolute = Now() - 10
  </code></pre>
  
  <p>Once I change it to: </p>
  
  <pre><code>Response.Expires = 0
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>nSearchPos = CLng((nLBound + nUBound) / 2)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>next
  </code></pre>
  
  <p>I am currently creating an 'R1' instance of Windows Server 2003, to see if I can reproduce it on this server.</p>