Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 5th, 2007, 05:54 AM
Authorized User
 
Join Date: Mar 2007
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default Timout Error??

I've got some ASP written that works perfect when pull a couple thousand record, but when I pull more, I get the dreaded:

HTTP 500 - Internal server error

Can someone tell me how to get around this??

I've tried adding the following and it doesn't seem to make a difference.

cn.CommandTimeout = 300
Server.ScriptTimeout = 1800
Session.Timeout = 300
cn.ConnectionTimeout = 1800

Changing the length of time doesn't make a difference either and it errors long before 300 seconds are up, when pulling to many records at once.
 
Old December 5th, 2007, 01:59 PM
Authorized User
 
Join Date: Mar 2007
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After some playing around with the code, since the http 500 error is so generic, I found the real problem was buffer size. I then added <%Response.Buffer = False%>.

Now I have another problem. I'm now getting an Out of Memory Error.

Can anyone help??

Thanks.
 
Old December 5th, 2007, 02:09 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

How much data are you pulling exactly?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========
 
Old December 5th, 2007, 04:46 PM
Authorized User
 
Join Date: Mar 2007
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How much depends on what the search criterias are selected. Regardless, I've got it working.

All I had to do was set the response.buffer to true and do a response.flush()

So far, I've been able to grab of 50MB's of data and it hasn't bombed!

Yipee!!!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 09:17 PM
VB Error: Syntax Error or Access Violation codehappy VB How-To 7 October 3rd, 2007 05:41 PM
Timout Expired Error In Access prince500 SQL Server 2005 0 May 23rd, 2007 09:11 AM
Phile Page error, visual studio error reps BOOK: ASP.NET Website Programming Problem-Design-Solution 0 September 27th, 2003 10:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.