Re: Timeout Script help needed please.
am 14.09.2007 11:11:38 von reb01501Bernie wrote:
> Hi
> I have a page that keeps timing out even after increasing the time. This
> page has been working fine before and I am aware that increasing
> the timeout only serves as a 'bandaid' to fixing the problem and
> might mask any other errors. Can anyone give me any idea as to why
> this might be happening.
Not until you can tell us where the bottleneck is. From the error message,
there seems to be a COM object involved, so we are not going to be able to
run the code to find out where the bottleneck is ourselves. You have to do
this, inserting timing statements to help reveal which part of the code is
taking too long. Like this:
<%
dim t
t=now
'...some code
response.write "first check: " & datediff(s,t,Now) & "
"
'...some code
response.write "second check: " & datediff(s,t,Now) & "
"
For this testing, set ScritpTimeout to a very large number. Run the page and
use the timing checks to reveal the part of the code that is taking too
long. Show that part to us if you can't figure out why it is taking too
long.
I don't open file attachments in usenet. If you want me to look at your
code, extract the relevant bits and include them in your message rather than
attaching an entire file.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"