« Previous Next »

Thread: Long running queries are timed out after 5 mins.

Last post 10-11-2007 11:05 PM by steve schofield. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 10-10-2007, 1:38 AM

    • sureshvb
    • Not Ranked
    • Joined on 05-14-2007, 10:27 AM
    • Posts 3

    Long running queries are timed out after 5 mins.

    We have an ASP .Net 2.0 application running on a web server (IIS 6.0, Windows Server 2003 SP2) on front end machine. This application executes a stored procedure on warehouse machine (different machine from front end machine) and shows the success/Failure message onto application.Problem: If stored proc execution time is < 5mins (approx), everything runs fine and the result gets generated.

    But if stored proc execution takes longer (> 5 mins), user is prompted to provide credentials after 5 mins. And if user provides credentials, same stored proc is executed again. And again if it takes > 5 mins, user is prompted to provide credentials. This happens thrice before the process gets aborted saying that “You are not authorized to access this page”

    All the timeout values in IIS settings are >5 mins. and the database command(Query) timeout is set to 30 mins.

    Can any one suggest that do we have any value in Registry/IIS config files where the default timeout value is 5 mins.

  • 10-11-2007, 11:05 PM In reply to

    Re: Long running queries are timed out after 5 mins.

    Have you considered making this service or console application vs. a web-based request.  5 minutes for an http request seems to be a long time.  The only idea I can think of is increase the ScriptTimeout property.  http://www.w3schools.com/asp/prop_scripttimeout.asp

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
Page 1 of 1 (2 items)
Microsoft Communities