473,508 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ConnectionTimeout and CommandTimeout ignored when running ASP on Windows Server2003 with IIS 6.0

I am running ASP code that was migrated from a Windows 2000 Server to a
Windows 2003 server. For some reason the connection timeout or command
timeout are getting ignored and my query time sout after 30 seconds. My
connection times are set as follows in an include file:

Dim objDBConnection
Set objDBConnection = Server.CreateObject("ADODB.Connection")
With objDBConnection
.ConnectionString = Application("ConnString")
.ConnectionTimeout = 180
.CommandTimeout = 240
.Open
End With
Thank you,

Tim
Oct 4 '05 #1
1 4133
Tim Meagher wrote:
I am running ASP code that was migrated from a Windows 2000 Server to
a Windows 2003 server. For some reason the connection timeout or
command timeout are getting ignored and my query time sout after 30
seconds. My connection times are set as follows in an include file:

Dim objDBConnection
Set objDBConnection = Server.CreateObject("ADODB.Connection")
With objDBConnection
.ConnectionString = Application("ConnString")
.ConnectionTimeout = 180
.CommandTimeout = 240
.Open
End With


Are you sure it's your query timing out (you would be getting an ADO message
in this case), and not your script timing out (you would be getting a
vbscript message in this case)? Try setting your server.ScriptTimeout to a
larger number.

Incidently, it's a bad idea to execute long-running queries from ASP,
especially if you want your application to scale. Is there anything that can
be done to optimize the query rather than bogging down your web server?

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Oct 4 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4958
by: Peter Kwan | last post by:
Hi, I believe I have discovered a bug in Python 2.3. Could anyone suggest a get around? When I tested my existing Python code with the newly released Python 2.3, I get the following warning: ...
3
8156
by: BVM | last post by:
Hi: Do you know how to change Connection timeout time? By default it's 15s, Now I want to change it to 30s. However SqlConnection.ConnectionTimeout is read only. What should I do? Also if the...
1
2890
by: Frank Rizzo | last post by:
Hello, Is there a way to provide a Command Timeout value (not Connection Timeout) in the ConnectionString, like there used to be in ADO? Something like conn.ConnectionString = "Integrated...
0
1232
by: caincognito | last post by:
I'm using multiple threads to abort a spawned process. I implemented the examples in MSDN and everything works fine. Problem starts when I create and run a GUI in the process. The thread abort...
9
432
by: Tim Cali | last post by:
I set a breakpoint in a project, however the breakpoint is ignored. This was in the TimeTracker project from the Asp.Net site. I added it at the Login method of the TTUser class (TTUser.vb). I...
2
1398
by: Amihai | last post by:
hi, I have an ASP.NET application functioning properly on Windows 2000/iis5, built using Visual Studio 2003. The application use viewstate. when move the application to other computer using...
0
1496
by: Yong | last post by:
I'm not getting any reply to my previous thread so I'm stating a new one. I get a General Network Error due to my SqlCommand object not having a big enough CommandTimeout to complete very long...
3
23002
by: Piotrek | last post by:
Hi all. I would like to know what is the difference between these two timeouts: - CommandTimeout - ConnectionTimeout I have following setting in my web.config file: <httpRuntime...
2
11080
by: cj | last post by:
MySQLConnection.connectiontimeout() returns 15. I want to drop that to 3, but it is read only. I see you can include the timeout "Connection Timeout=30" as part of the connection string but I...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7124
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3195
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1558
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.