473,672 Members | 2,603 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What are the timeouts that can be set in asp.net

I have an ASP.Net application that works with MS SQL Server in background to
show some infomartions to the users. I also have build the functionality for
downloading this information in a CSV-Format file. If I set the shown
information over a short period of time (lets say 1 year) then the download
work god. If I set a longer period (5 years --> more infos to show and
download) then I can still see the inforamtion but I can't download it. I
get an "The page cannot be shown" error.

I thing that there is a timeout problem but I don't know which timeouts can
be set in asp.net.

Any answer could help me a lot.

Thanks.

Nov 19 '05 #1
3 1130
look at

the sqlcommand query timeout
the asp.net page has a timeout

-- bruce (sqlwork.com)
"George Homorozeanu" <ge************ ****@hotmail.co m> wrote in message
news:ew******** ******@TK2MSFTN GP10.phx.gbl...
I have an ASP.Net application that works with MS SQL Server in background
to show some infomartions to the users. I also have build the functionality
for downloading this information in a CSV-Format file. If I set the shown
information over a short period of time (lets say 1 year) then the download
work god. If I set a longer period (5 years --> more infos to show and
download) then I can still see the inforamtion but I can't download it. I
get an "The page cannot be shown" error.

I thing that there is a timeout problem but I don't know which timeouts
can be set in asp.net.

Any answer could help me a lot.

Thanks.

Nov 19 '05 #2
It could be sql timeouts. I've had queries run in the past which go beyond
the defaults and fail. I think the default query timeout is something like
30 seconds, and the connection timeout is 15 but they can be changed in
code.

in C#

SqlConnection con = new SqlConnection() ;
SqlCommand cmd = new SqlCommand();

cmd.Connection. ConnectionTimeo ut = 30;
cmd.CommandTime out = 45;

Using DataAdapters would look something like

adp.SelectComma nd.Connection.C onnectionTimeou t = 30;
adp.SelectComma nd.CommandTimeo ut = 45;

If you have it try running the same query it would produce in SQL Query
Analyzer. It will not timeout on a long query and will give a value of
seconds taken which should help.

If you are using them you can also set Session variables timeout in
web.config (initially 20 minutes) or individually withSession.Tim eout = 40

There are probably more but those are the ones that spring to mind.


"George Homorozeanu" <ge************ ****@hotmail.co m> wrote in message
news:ew******** ******@TK2MSFTN GP10.phx.gbl...
I have an ASP.Net application that works with MS SQL Server in background
to show some infomartions to the users. I also have build the functionality
for downloading this information in a CSV-Format file. If I set the shown
information over a short period of time (lets say 1 year) then the download
work god. If I set a longer period (5 years --> more infos to show and
download) then I can still see the inforamtion but I can't download it. I
get an "The page cannot be shown" error.

I thing that there is a timeout problem but I don't know which timeouts
can be set in asp.net.

Any answer could help me a lot.

Thanks.

Nov 19 '05 #3
Hi, George.

There's a useful "trick" which can help you
find out *all* possible timeout settings.

If you're using .Net Framework 1.1, navigate
to the .Net Framework CONFIG directory :

drive:\WINDOWS\ Microsoft.NET\F ramework\v1.1.4 322\CONFIG

There, open machine.config with Notepad,
and save it as machine.config. xml

Now, double-click machine.config. xml. It will open in IE.

It's easy, now, to search for "timeout", and see what the different timeouts
refer to ( the file is well-commented, and explains what each "timeout" setting
refers to ).


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"George Homorozeanu" <ge************ ****@hotmail.co m> wrote in message
news:ew******** ******@TK2MSFTN GP10.phx.gbl...

I thing that there is a timeout problem but I don't know which timeouts can be set in
asp.net.

Any answer could help me a lot.

Nov 19 '05 #4

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

Similar topics

1
3834
by: Christian Luszick | last post by:
hi, I am using output buffering with ob_start and a callback function, which replaces variables like "%var%" with the equivilants taken out of a mysql database. This works well! But I get sometimes php timeouts (max execution time (30s) exceeded ...). The Server should be really fast enough (dual PIII, >1 GB RAM) and runs with PHP 4.1.2 and MySQL 3.23.56. Any suggestions? Known Probs?!
2
3287
by: p2esp | last post by:
Hello, I'm using the xmlrpclib module to contact an XMLRPC server that takes a long time to send results back. My client timeouts. The question is whether there is a way to have an xmlrpclib client that never timeouts. I have been searching for some code examples on how to do that, but I could not find any in the xmlrpclib
4
1769
by: Laphan | last post by:
Hi Guys I've been using text files for Tab-Delimited/ADO/ASP sites so that users can update and display their products lists through my system with relative ease. Only problem is that for the last few months or so, this system has been generating loads of timeouts. ISP has said that I should be looking to upgrade my system, as it is the mechanics of it that are creaking under the strain. My queries are:
5
8822
by: wamatt | last post by:
Subject: SQL server job timeouts? We have a job that uses WinHTTP inside a stored procedure. We have another SP wrapper that runs this for a couple hundred records. When we add this as a job using SQLAgent it times out half way. Running it from SQL Query analyser and it completes to the end. Anyway to set the timeouts for jobs?
4
1365
by: zmcelrath87 | last post by:
I am having a problem involving the scope of timeouts and intervals. Since timeouts and intervals execute in the global scope, dynamically generated local interval/timeout declarations do not work, because the dynamically generated code they have to execute involves variables that have been thrown out by the time of execution. In the first of the two following code examples, my interval declaration includes code that relies on variables...
2
1654
by: mircu | last post by:
Hi, I need a quick solution to make my application behave correctly when one of these timeouts occurs. I have some logic in session_start but when the authentication cookie timeouts the user is redirected to login page and after successful login the session is not started. I'd like to have one timeout and when it occurs the user must login and then the new session is started. TIA. Regards, mircu
2
19176
by: Joannes Vermorel | last post by:
We have developed an open-source eCommerce sales forecasting add-on in PHP (see link below) that requires usually more than a few seconds to complete because the process involves some Web Services communications. http://community.lokad.com/PhpSalesForecasting.ashx Yet, in shared hosting with short PHP execution timeouts, our script may not terminate (being killed by the web server). Our concern is not the timeout in itself, it's the...
0
1067
by: John Nagle | last post by:
What actually works and what doesn't in socket timeouts in Python 2.5? What breaks with timeouts turned on? There are lots of patches and bug reports, but no coherent summary. John Nagle
10
6165
by: Zytan | last post by:
I have a TcpClient. I set the read/write timeouts at 1 minute (in milliseconds). I get a NetworkStream from it and confirm the timeouts still exist. I do a NetworkStream.Write() and then a NetworkStream.Read(). Sometimes it sits and waits -- on the Write() or the Read() -- for 15 minutes before I get fed up and close the app..... I am not connecting to a TcpListener. I am connecting to a Socket with ProtocolType.Tcp, which is...
0
8486
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, 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...
0
8931
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, 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...
0
8828
jinu1996
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...
1
8608
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7446
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6238
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 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...
0
5705
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4227
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...
0
4418
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.