Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old September 13th, 2006, 07:34 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I do not know what to tell you, take a look at the msdn and see if there is a KB article about this, but I have never had, nor heard, of this problem.

"The one language all programmers understand is profanity."
Reply With Quote
  #12 (permalink)  
Old October 20th, 2006, 10:46 AM
Registered User
 
Join Date: Oct 2006
Location: Dublin, , Ireland.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have found the exact same problem. The wierd thing is the error only occurred when the website was running in the default application pool. As soon as the script was taken out and put into a website in a dedicated app pool it ran fine every time. Not sure if creating a new app pool is a likely option for you?

Also did some 'cleaning' int he default app pool and halved the memory footprint and the script then ran successfully everytime (as far as I could count anyway!). So this problem may indicate wider reaching problems.

Did you find any solution/kb?

Hope this helps!

"What we have to learn to do we learn by doing."

Aristotle 351 BC
Reply With Quote
  #13 (permalink)  
Old November 28th, 2006, 06:56 PM
Registered User
 
Join Date: Nov 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the same problem.
The example given by the initial post is right on the money - any simple division in vbscript can kick this off.
Never happened until we moved our website to Windows 2003. Win NT, Win 2000 and Win XP do not get the error.
As the first poster pointed out - its not an "arithmetic overflow" like trying to cast a large number into an int or dividing by zero - the error only says "overflow".
We have extensive logging turned on for this -The values can be as simple as 1 divided by 1.
Once this starts happening the app pool is basically shot - It will happen everytime. Its unprdeictable as to when it will happen.
We have MOM set to recycle the app pool whenever we see this. We have been forced to automatically recycle our app pool every 45 minutes - but we still get the problem occassionly.

I too played around with cdbl and clng hoping it would make the problem go away - alas no luck.

I'm going to move the division operation inside of a vb dll. I'll post here if it makes an improvement.

Reply With Quote
  #14 (permalink)  
Old February 2nd, 2007, 01:11 PM
Registered User
 
Join Date: Feb 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I know I'm coming in late on this topic but I too have exactly the same problem.

I can't find any solution and searching on the net has not unearthed anything.

If anyone has find a solution, please, please contact me!

Thanks

Paul

Reply With Quote
  #15 (permalink)  
Old April 27th, 2007, 02:21 PM
Registered User
 
Join Date: Apr 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to trotman999 Send a message via MSN to trotman999
Default

I am also getting this strange overflow error on a com+ applicaiton which was recently moved to Windows 2003 R2 Servicepack 2.

Did anyone figure out the problem



Reply With Quote
  #16 (permalink)  
Old April 29th, 2007, 11:23 PM
Registered User
 
Join Date: Apr 2007
Location: Auckland, , New Zealand.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This seems to be relates to SSE2 based CPUs + Windows 2003 Server + COM+ applications. Its fairly nasty by the looks, check here...

http://www.4chapsfromblighty.com/ind...&c=1&tb=1&pb=1
Reply With Quote
  #17 (permalink)  
Old April 30th, 2007, 04:51 AM
Registered User
 
Join Date: Feb 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've given up trying to fix it - I suspect only Microsoft can fix this and I suspect fixing Classic ASP bugs is not high on their to-do list!

All I've managed to do is work around it. I do a simple calculation at the top of my page that I know will generate a floating point result, for example:
On Error Resume Next
Dim TestVar
TestVar = 100
TestVar = (20 - 3 * 2 / 3) + 100 mod 7

If Err.Number <> 0 Then.......

If no error then cool - it's working today!

If Windows 2003 is having a strop and error thrown I simply do a Response.Redirect to the identical page but running under a different IIS website and application pool. As far as my users are concerned everything is ok.

I often find the problem then solves itself - if not a restart of the original application pool clears it.

It's a real pain and if anyone ever does find a solution please let us know!

Paul








Reply With Quote
  #18 (permalink)  
Old April 30th, 2007, 06:25 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

2 cents worth. IME:

I have had this error once however have seen it with colleauges two or three times. I honestly think its a problem with the code, is it written as efficiently as it can be, can be written better.

Each time the pages in question have been heavy on input, output therefore resources...

I experienced it on a 2003 box however the other two times was IIS 5.1 (XP) - It does happen outside of 2003 IIS 6.0 Each time its happened the pages have been re-written by piers and the problem has been resolved.

Wind is your friend
Matt
Reply With Quote
  #19 (permalink)  
Old May 1st, 2007, 07:28 AM
Registered User
 
Join Date: Feb 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I can't speak for others but in my own experience this is not an obvious problem with my ASP code.

I've actually stripped a page down to just 1 line - a very simple floating point calculation and still got the error.

Exactly what causes it I'm not sure and no one else is 100% sure either although I've seen some pretty good explanations.

Possibly the bug you are seeing is different from the one we're getting - even if the error message is the same.

Paul.

p.s. Sorry to hear about your wind - too many baked beans?

Reply With Quote
  #20 (permalink)  
Old May 1st, 2007, 06:44 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Clearly a different problem then. These pages I talk about were very involved and resources hungry. I come to the conclusion described above simply because they worked after a great deal of care was taken re-building the page.

Good luck with your problem.

Yes I do love beans, hence the associated wind problem....also comes in handy with my kitesurfing :o)

Wind is your friend
Matt
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Arithmetic overflow error gregalb Reporting Services 1 June 24th, 2008 02:42 PM
Odd arithmetic overflow error.... 7racer SQL Server 2000 4 May 12th, 2006 09:17 AM
arithmetic overflow problem flyfish SQL Server 2000 4 July 12th, 2005 04:37 PM
Arithmetic overflow error converting expression to sinapra Classic ASP Databases 8 September 3rd, 2004 12:24 AM
Arithmetic overflow error converting expression to spikey SQL Server 2000 1 June 24th, 2003 07:19 PM



All times are GMT -4. The time now is 01:47 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.