Previous Next

Thread: long query worked in iis 5 but not iis 6, page doesn't complete

Last post 07-26-2007 4:23 PM by steve schofield. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 07-25-2007, 10:48 AM

    • smokey
    • Not Ranked
    • Joined on 07-25-2007, 2:30 PM
    • Posts 2
    • smokey

    long query worked in iis 5 but not iis 6, page doesn't complete

    I have an asp page that calls a component developed using vb6 to handle database access.  The page creates and online report.  The query is a long running one (just over 5 minutes).  I know that is huge but I have no choice to remove this report. 

     The problem is that when we changed to windows 2003 and iis 6, the asp page never completes.  I can use and older server running iis 5 and it works fine.  Using IE7 the tab has the spinning circle and says connecting.  At the bottom the browser says it is waiting for http://????? where the question marks are just the address of the page.  Using component services I can see that the component begins processing and a little over 5 minutes later appears to complete it work.  This appears the same regardless of using iis 5 or 6.  Even though the compent has completed running the query the page never finishes loading.  I've set the keep-alive, connection time-outs and script time-outs to give plenty of time.  i've tried a registry setting on the client that is supposed to tell IE7 to increase the keep-alive as well.  I don't received any error messages in the brower, IIS logs, event viewer, or our compontents error log.  I can't tell if the component is having trouble getting the data back to iis or if iis is just never sending the data back to the browser.

    Also, if I have the page create the report for a shorter running query it works fine.

     I assume I am just missing some simple setting but can't figure out what it could be.  Any help would be greatly appreciated.

    Thanks.

  • 07-25-2007, 11:29 PM In reply to

    Re: long query worked in iis 5 but not iis 6, page doesn't complete

    Have you profiled sql to see if the connection stays open?  You might need to increase your connection string timeouts.  Have you tried increasing the ScriptTimeOut value to something large?

    Thi sis the ASP property.

    http://www.w3schools.com/asp/prop_scripttimeout.asp

    Steve Schofield
    Windows Server MVP - IIS
    MCTS - Windows Hosting

    http://weblogs.asp.net/steveschofield
    http://www.iislogs.com
    http://www.orcsweb.com/
    Managed Hosting Solutions
    #1 in Service and Support
  • 07-26-2007, 10:48 AM In reply to

    • smokey
    • Not Ranked
    • Joined on 07-25-2007, 2:30 PM
    • Posts 2
    • smokey

    Re: long query worked in iis 5 but not iis 6, page doesn't complete

    In the asp page the scripttimeout is 3500 (way higher than needed).

    Under properties in IIS the Connection timeout is 480 seconds (for default web site) and

    Enable HTTP Keep-Alives is checked.

    Under properties in IIS for the virtual directory or application directory of the website that has the report I have:

    “ASP script timeout” is set to 480 seconds,

    Session timeout is 20 minutes (virtual directory web site or application)

     

    I have not used the sql profiler because I've seen the same query run with the same data prior to the move to iis 6 and windows 2003 and it also runs fine when i use our development web server running windows 2000 with the older iis (but pointing to the same production database server).  I don't really know much about monitoring the status of connections so that is another reason I haven't used the profiler.

     

    It really seems more like IIS has stopped communicating with the browser or maybe IIS is waiting for the component to do something.  Almost like a lost connection or timeout but I can't find any place to change more settings that what I've mentioned above.

     

    Normally this runs in a web farm but even when I go directly to just one of the web servers the page doesn't complete...so i don't think it could be related to BigIP or the way the web farm is setup.  And we were using the web farm with no problem prior to putting windows 2003 on the servers.

     

     

     
  • 07-26-2007, 4:23 PM In reply to

    Re: long query worked in iis 5 but not iis 6, page doesn't complete

    When strange things like this, the more logging you can do the better.  I would isolate to a single machine as you are doing, open Network Monitor or Ethereal, SQL Profiler to capture what information is occuring during the transaction.  If you can reproduce it, using monitoring tools while it is happening will provide data you can help isolate and hopefully resolve the issue. 

    Steve Schofield
    Windows Server MVP - IIS
    MCTS - Windows Hosting

    http://weblogs.asp.net/steveschofield
    http://www.iislogs.com
    http://www.orcsweb.com/
    Managed Hosting Solutions
    #1 in Service and Support
Page 1 of 1 (4 items)
Page view counter