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.