SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2001
    Location
    Panhandle of Florida (White Sand/Brown Skin)
    Posts
    147
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    (ASP) "Script timed out" error... huh?!

    Hello... I have been getting this error all night on my site...
    Active Server Pages error 'ASP 0113'

    Script timed out

    /howto.asp

    The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeOut or by changing the value in the ASP administration tools.
    I dont quite understand why though... I have changed nothing on my scripts and so why would they work fine for days, then all of the sudden begin doing this?

    Could someone give me any ideas on how to fix this?

    By the way... Its every single ASP page on my site that is returning this... not just a specific one or two.

  2. #2
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    Vilnius, Lithuania
    Posts
    203
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's possible that the problem is created by your internet connection or something. When your script does something and your browser doesn't receive it in a timely fashion such things can occur. You may try to use response.buffer=true to buffer all the content and then flush it at the end.
    SPAW Editor v.2 - web based wysiwyg editor for PHP and ASP.NET.
    Opera and Safari support, tabbed interface, floating toolbar...

  3. #3
    Say WHA?! goober's Avatar
    Join Date
    Sep 2000
    Location
    United States
    Posts
    1,921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try setting putting this code in your global.asa file, under the "Sub Session_onStart()" Sub:
    Code:
    Session.Timeout = 30
    It sets the Session timeout to 30 minutes. It seems as if the pages are timing out too quickly. Try that and see if it works.

    Hope this helps! If not, well, just come right back with more information.
    Sean Killeen [LinkedIn] [Twitter] [Web]

    Warning: Reality.sys corrupted. Universe halted. Reboot? (Y/N)

  4. #4
    SitePoint Wizard
    Join Date
    Jan 2001
    Location
    Milton Keynes, UK
    Posts
    1,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SeFu,

    Does the problem occur with all scripts or just those connecting to a db?

    If it's all scripts it may be a problem with the server (eg load, config) but if it just affects those connecting to a db then you may want to double check everythings still ok with the db and db connection string.

    The following link may help with altering the default timeout periods for different asp/ado objects.
    http://www.aspfaq.com/faq/faqShow.asp?fid=133

  5. #5
    SitePoint Zealot
    Join Date
    Mar 2001
    Location
    Panhandle of Florida (White Sand/Brown Skin)
    Posts
    147
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Shane,
    thank you for your input...

    Today I was getting this damn "Catostrophic Error" and I am so stumped on what causes that...

    anyway, after a few hours. I am now getting that script time out problem again.

    Could you tell me what I am suppose to look for when I double check that everything is still ok with the db and the db connection string?

    Do I just download the entire DB and take a look at its last row?
    The connection string has been the same for weeks, I am not sure what to look for there.

    please lend me a hand here... Im way out of my league

  6. #6
    SitePoint Wizard
    Join Date
    Jan 2001
    Location
    Milton Keynes, UK
    Posts
    1,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Download the db (i take it you're using Access) and try opening it. If it opens ok the db's probably ok. Can you try running your site locally? If so, and everything's ok, then it's probably the server thats causing the grief.

    As to 'Catostrophic error' try the following link as I posted a couple of urls that may help.

    http://www.sitepointforums.com/showt...threadid=24153

  7. #7
    SitePoint Member
    Join Date
    Jun 2001
    Location
    madison, WI
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try server.ScriptTimeout=1000000 should do the trick
    http://www.searchnightlife.com
    info@searchnightlife.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •