Hi all
I get the following error when executing a rather intense stored procedure
from an ASPX page.
I have tried:
- Increasing timeouts on IIS 5.0 (all areas that even mention timeout)
- use the "Connection Timeout=2400" string in the SqlConnection connections
string
- disabled connection pooling.
the error seems to consistently come back after 30 seconds! I am using
Microsofts Data Application blocks for accessing SQL.
is there a timeout setting that i am missing???? or is this a bug?
Thanks!
Jason
Timeout expired. The timeout period elapsed prior to completion of the
operation or the server is not responding.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Data.Sql Client.SqlExcep tion: Timeout expired. The
timeout period elapsed prior to completion of the operation or the server is
not responding.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException: Timeout expired. The timeout period elapsed prior to
completion of the operation or the server is not responding.]
System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +723
System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or behavior)
+44
System.Data.Sql Client.SqlComma nd.System.Data. IDbCommand.Exec uteReader(Comma n
dBehavior behavior) +5
System.Data.Com mon.DbDataAdapt er.FillFromComm and(Object data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior) +304
System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32 startRecord,
Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior
behavior) +77
System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet) +38
Microsoft.Appli cationBlocks.Da ta.SqlHelper.Ex ecuteDataset(Sq lConnection
connection, CommandType commandType, String commandText, SqlParameter[]
commandParamete rs) +148
ppm.Post_to_GL. run_a_sp_Proces sedDeals() +246
ppm.Post_to_GL. btnPostToGL_Cli ck(Object sender, EventArgs e) +75
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP o
stBackEvent(Str ing eventArgument) +57
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33
System.Web.UI.P age.ProcessRequ estMain() +1277 5 13276
The SQL Connection timeout is just how long the attempt to make a connection
lasts if it's having trouble. It has nothing to do with execution of SQL
statements.
You need to change the timeout on the command object.
"Jason" <c_*******@migh ty.co.za> wrote in message
news:%2******** ************@tk 2msftngp13.phx. gbl... Hi all
I get the following error when executing a rather intense stored procedure from an ASPX page. I have tried: - Increasing timeouts on IIS 5.0 (all areas that even mention timeout) - use the "Connection Timeout=2400" string in the SqlConnection
connections string - disabled connection pooling.
the error seems to consistently come back after 30 seconds! I am using Microsofts Data Application blocks for accessing SQL. is there a timeout setting that i am missing???? or is this a bug?
Thanks! Jason
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.Sql Client.SqlExcep tion: Timeout expired.
The timeout period elapsed prior to completion of the operation or the server
is not responding.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.] System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +723 System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
behavior) +44
System.Data.Sql Client.SqlComma nd.System.Data. IDbCommand.Exec uteReader(Comma n dBehavior behavior) +5 System.Data.Com mon.DbDataAdapt er.FillFromComm and(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304 System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77 System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet) +38 Microsoft.Appli cationBlocks.Da ta.SqlHelper.Ex ecuteDataset(Sq lConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParamete rs) +148 ppm.Post_to_GL. run_a_sp_Proces sedDeals() +246 ppm.Post_to_GL. btnPostToGL_Cli ck(Object sender, EventArgs e) +75 System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP o stBackEvent(Str ing eventArgument) +57 System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler sourceControl, String eventArgument) +18 System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33 System.Web.UI.P age.ProcessRequ estMain() +1277
did you try setting up SqlCommand.Comm andTimeout property?
If not, do so...
--
Hope this helps,
Zeeshan Mustafa, MCSD
"Jason" <c_*******@migh ty.co.za> wrote in message
news:%2******** ************@tk 2msftngp13.phx. gbl... Hi all
I get the following error when executing a rather intense stored procedure from an ASPX page. I have tried: - Increasing timeouts on IIS 5.0 (all areas that even mention timeout) - use the "Connection Timeout=2400" string in the SqlConnection
connections string - disabled connection pooling.
the error seems to consistently come back after 30 seconds! I am using Microsofts Data Application blocks for accessing SQL. is there a timeout setting that i am missing???? or is this a bug?
Thanks! Jason
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.Sql Client.SqlExcep tion: Timeout expired.
The timeout period elapsed prior to completion of the operation or the server
is not responding.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.] System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +723 System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
behavior) +44
System.Data.Sql Client.SqlComma nd.System.Data. IDbCommand.Exec uteReader(Comma n dBehavior behavior) +5 System.Data.Com mon.DbDataAdapt er.FillFromComm and(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304 System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77 System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet) +38 Microsoft.Appli cationBlocks.Da ta.SqlHelper.Ex ecuteDataset(Sq lConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParamete rs) +148 ppm.Post_to_GL. run_a_sp_Proces sedDeals() +246 ppm.Post_to_GL. btnPostToGL_Cli ck(Object sender, EventArgs e) +75 System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP o stBackEvent(Str ing eventArgument) +57 System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler sourceControl, String eventArgument) +18 System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33 System.Web.UI.P age.ProcessRequ estMain() +1277
The Connect Timeout property of the Connection String will specify how
long the underlying provider will wait before a Connection Timout
occurs. After you connect this is not going to be used unless you
perform a reconnection again.
You can try to use a SQLCommand object but specify the Timeout Property.
I am not sure about the Application Block as I am not at my desk. Should
you require please drop me an email or post to this forum.
The Default is 20 seconds for a sql command to timeout. If it a heavily
used table then try to add the WITH (NOLOCK) clause for your select
statements.
Regards,
Trevor Benedict R
MCSD
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
did you try setting up SqlCommand.Comm andTimeout property?
If not, do so...
--
Hope this helps,
Zeeshan Mustafa, MCSD
"Jason" <c_*******@migh ty.co.za> wrote in message
news:%2******** ************@tk 2msftngp13.phx. gbl... Hi all
I get the following error when executing a rather intense stored procedure from an ASPX page. I have tried: - Increasing timeouts on IIS 5.0 (all areas that even mention timeout) - use the "Connection Timeout=2400" string in the SqlConnection
connections string - disabled connection pooling.
the error seems to consistently come back after 30 seconds! I am using Microsofts Data Application blocks for accessing SQL. is there a timeout setting that i am missing???? or is this a bug?
Thanks! Jason
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.Sql Client.SqlExcep tion: Timeout expired.
The timeout period elapsed prior to completion of the operation or the server
is not responding.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.] System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +723 System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
behavior) +44
System.Data.Sql Client.SqlComma nd.System.Data. IDbCommand.Exec uteReader(Comma n dBehavior behavior) +5 System.Data.Com mon.DbDataAdapt er.FillFromComm and(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304 System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77 System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet) +38 Microsoft.Appli cationBlocks.Da ta.SqlHelper.Ex ecuteDataset(Sq lConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParamete rs) +148 ppm.Post_to_GL. run_a_sp_Proces sedDeals() +246 ppm.Post_to_GL. btnPostToGL_Cli ck(Object sender, EventArgs e) +75 System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP o stBackEvent(Str ing eventArgument) +57 System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler sourceControl, String eventArgument) +18 System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33 System.Web.UI.P age.ProcessRequ estMain() +1277
The Connect Timeout property of the Connection String will specify how
long the underlying provider will wait before a Connection Timout
occurs. After you connect this is not going to be used unless you
perform a reconnection again.
You can try to use a SQLCommand object but specify the Timeout Property.
I am not sure about the Application Block as I am not at my desk. Should
you require please drop me an email or post to this forum.
The Default is 20 seconds for a sql command to timeout. If it a heavily
used table then try to add the WITH (NOLOCK) clause for your select
statements.
Regards,
Trevor Benedict R
MCSD
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: bdeviled |
last post by:
I am deploying to a web environment that uses load balancing and to insure
that sessions persist across servers, the environment uses SQL to manage
sessions. The machine.config file determines how all applications will use
sessions and to insure that all application use this method, the session
properties cannot be overriden.
Within the sessionstate tags, the webadmin (upon my request)r emoved the
property for timeout, hoping that...
|
by: David M. Nolf |
last post by:
I have a web service that has a method that takes a fair amount of time to
complete. One of my clients is stating that they are getting a timeout
back.
I am having difficulties getting my Windows XP workstation which is running
the web service and a simple VB.NET test client to timeout on the method.
I have looked and adjusted the following values with NO effect.
web.config
|
by: Dan |
last post by:
All,
I have a Web Service that validates a piece of data. However, the database
that the data comes from is mamouth. So, it may take a long time for the
validation query to complete.
Unforuntatley, I tend to get a timeout message on my client which is not
good. I want the client to wait until it gets a response. Can I adjust the
amount of time that it waits? If so where is that at?
|
by: A.M-SG |
last post by:
Hi,
How can I increase the HTTP Timeout value at the client side?
Thank you,
Alan
|
by: george |
last post by:
Hi all, here's my index.asp file. I don't know where has gone wrong.
can't run properly, just showing
error ASP 0113 Script timeout
<!--#include file="head.asp"-->
<!-- begin masthead -->
| |
by: stormsender |
last post by:
Hi there, I'm a noob to javascript, so was hopping to find some help here...
I believe that what I need is simple, still haven't found any solution.
I have a website serving ads, and links from several systems, and they always come in a format like:
<script language=javascript src="http://something.com/script.php?id=26758765"></script
This is fine, however I would like to establish a time-out for this, like for instance, if...
|
by: johnlim20088 |
last post by:
Hi,
Currenty I have a window based NET application running and have a following function to http post some data.
string url = xxxx.aspx? parameter1=¶meter2=&..etc
WebRequest request = WebRequest.Create(url);
request.Timeout =150000;
WebResponse response = request.GetResponse();
StreamReader stream = new StreamReader(response.GetResponseStream());
|
by: cmgmyr |
last post by:
Hey All,
I'm having a little problem with exporting data from my database. The
problem is that the query seems to be too much for PHP and MySQL to
handle since it is timing out. I have the timeout set right now at 3
minutes. I can run this in phpMyAdmin and it usually takes 4-5 minuted
to complete. I do not want to have to make the client wait that long
for this. This is part of an import/export Excel function that I have
made. Here is...
|
by: Atli |
last post by:
Introduction
In this article I aim to explain the reasons why PHP sessions expire after a set period of inactivity, and how this mechanism works. I'll describe two commonly used methods to control the lifetime of a session, and show how to do so in your code.
The problem
PHP's session mechanism allows us to store data for clients on the server to make it persist through multiple requests. However, because the data itself is stored on the...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |