Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 18, 2010 05:03 PM by aptomar
Oct 30, 2006 10:25 PM|LINK
I am working on an application.
I am collecting the inputs from user i Asp .Net form and then querying the database(on another server).From the output, I create a report and send it back to the user.
The problem is , database query takes a lot of time (approx 2 min).By that time, the request times out.
How to set the time out for the request so that the user can get back the response ?
asp.NET 2.0 C#
Oct 31, 2006 01:57 AM|LINK
You can set this value in web.config. For example, to change the timeout for one specific page:
See http://msdn2.microsoft.com/en-us/library/e1f13641.aspx for more details.
Hope that helps.
Oct 31, 2006 07:14 AM|LINK
Oct 31, 2006 05:09 PM|LINK
I have set the following entries in my to level web.config -
Additionalyy, I added the timeout for ConnectionString -
Connect Timeout=30000" />
In my code , i have set the timeout for database connection -
connection = new OracleConnection(ConfigurationManager.ConnectionStrings["ReportDb"].ToString());
command = new OracleCommand(QueryString, connection);
command.CommandType = CommandType.Text;
command.CommandTimeout = 30000;
However, i found out that using the debugger, even if I stop the flow of code before making any database operation, it times out exactly in 90 sec.So, I don't think database connection is causing the timeout.
Am I missing something ?
Nov 01, 2006 01:01 AM|LINK
Nov 01, 2006 05:14 PM|LINK
I found out one problem.
Earlier , I was using "UpdatePanel" of Atlas to host the content of the report.There, it was timing out exactly at 90 secs, irrespective of any timeout setting , including executionTimeout in "web.Config".(Well, I tried it with "Machine.config" also , but
Yes, I had the debug option as "true".
Now, after some research and your support, I am no more using "UpdatePanel".Instead, I am using the normal asp .Net Panel.
I set "debug" option as "false".
I set execution Timeout to a high value(90000).
But problem has become worse.It is timing out at 30 sec now.
Again, I set the executionTimepot to low value (5 sec).But still, it times out at 30 sec.
I feel that I am missing something.
Nov 03, 2006 01:26 AM|LINK
Hi~ For your interest, Atlas has now become Asp.net Ajax and there has been significent change on it, including the timeout settings.
Now you can set time in ScriptManager via its AsyncPostBackTimeout property~
Nov 23, 2006 07:01 PM|LINK
Jul 20, 2007 12:58 AM|LINK
I stopped at your post on how to increase script timeout in asp.net.Please let me know , if you have come accross anything to resolve this.
In my case when I access ASP.NET app from my local dev box, run smoothly except two interim pages take time to render.But when the same app deployed in other server , particular page returns back to previous page without completing to next page.Please let
me know , how I can resolve this.
Jan 18, 2010 05:03 PM|LINK
Try changing AsyncPostBackTimeout to 0. I have tested it and it's working for me.
Please mark this as answer if this solves your problem.
My Blog: http://aspnettutorial.wordpress.com/