473,513 Members | 2,605 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 1126
look at

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

-- bruce (sqlwork.com)
"George Homorozeanu" <ge****************@hotmail.com> wrote in message
news:ew**************@TK2MSFTNGP10.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.ConnectionTimeout = 30;
cmd.CommandTimeout = 45;

Using DataAdapters would look something like

adp.SelectCommand.Connection.ConnectionTimeout = 30;
adp.SelectCommand.CommandTimeout = 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.Timeout = 40

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


"George Homorozeanu" <ge****************@hotmail.com> wrote in message
news:ew**************@TK2MSFTNGP10.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\Framework\v1.1.4322\C ONFIG

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.com> wrote in message
news:ew**************@TK2MSFTNGP10.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
3814
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...
2
3278
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...
4
1759
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...
5
8811
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...
4
1352
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,...
2
1649
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...
2
19150
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...
0
1064
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
6126
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...
0
7160
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
7384
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
7537
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...
1
7099
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...
0
7525
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
4746
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...
0
1594
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
799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
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...

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.