Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3211518
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:44:32+00:00 2026-05-17T14:44:32+00:00

I am experiencing a request timeout from IIS when I run a long operation.

  • 0

I am experiencing a request timeout from IIS when I run a long operation. Behind the scene my ASP.NET application is processing data, but the number of records being processed is large, and thus the operation is taking a long time.

However, I think IIS times out the session. Is this a problem with IIS or ASP.NET session?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T14:44:32+00:00Added an answer on May 17, 2026 at 2:44 pm

    If you want to extend the amount of time permitted for an ASP.NET script to execute then increase the Server.ScriptTimeout value. The default is 90 seconds for .NET 1.x and 110 seconds for .NET 2.0 and later.

    For example:

    // Increase script timeout for current page to five minutes
    Server.ScriptTimeout = 300;
    

    This value can also be configured in your web.config file in the httpRuntime configuration element:

    <!-- Increase script timeout to five minutes -->
    <httpRuntime executionTimeout="300" 
      ... other configuration attributes ...
    />
    

    enter image description here

    Please note according to the MSDN documentation:

    “This time-out applies only if the debug attribute in the compilation
    element is False. Therefore, if the debug attribute is True, you do
    not have to set this attribute to a large value in order to avoid
    application shutdown while you are debugging.”

    If you’ve already done this but are finding that your session is expiring then increase the
    ASP.NET HttpSessionState.Timeout value:

    For example:

    // Increase session timeout to thirty minutes
    Session.Timeout = 30;
    

    This value can also be configured in your web.config file in the sessionState configuration element:

    <configuration>
      <system.web>
        <sessionState 
          mode="InProc"
          cookieless="true"
          timeout="30" />
      </system.web>
    </configuration>
    

    If your script is taking several minutes to execute and there are many concurrent users then consider changing the page to an Asynchronous Page. This will increase the scalability of your application.

    The other alternative, if you have administrator access to the server, is to consider this long running operation as a candidate for implementing as a scheduled task or a windows service.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently experiencing problems with a JPATransactionManager in a J2SE application. The latest request
I'm experiencing what I believe is a circular dependency issue with my PHP application.
We are using Rails 2.3.5 and have been experiencing seemingly random Timeout::Error: execution expired
We are experiencing a slow start up time on the first report request of
I seem to experiencing a weird error where my request params seem to be
For some reason I'm experiencing that ProcessRequest is invoked 3 times per browser request
After experiencing numerous problems with a certain media player, it got me thinking is
I'm experiencing an issue on a test machine running Red Hat Linux (kernel version
I'm experiencing an issue with ActiveMQ and would like to trace/view all ActiveMQ activity.
Our team has been experiencing a recurring problem with velocity templates. Upon rendering, some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.