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 8000189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:43:01+00:00 2026-06-04T15:43:01+00:00

I have a asp.net app and I have a few tasks that get called

  • 0

I have a asp.net app and I have a few tasks that get called in the application start function. These tasks run is while(true) and sleep for x amount of time after the computation is done. However after deploying the app I inspected the log file that is generated by these task and saw that they are running more then they should.

In fact they run every time someone access the site after some time of inactivity.

I was looking through the Application pool settings and saw that Process Model Idle time out is set to 20 minutes.

Could this be causing the problem? i.e. does the application get restarted after very 20 minutes and therefore causing the application_start function to be called again ?

  • 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-06-04T15:43:03+00:00Added an answer on June 4, 2026 at 3:43 pm

    Could this be causing the problem?

    Yes, exactly. This setting means that if there’s no activity on your site (no HTTP requests) for the given time, IIS will simply unload the application domain from memory. Then the next request that comes in will start a fresh new instance of the application and Application_Start will be hit once again.

    Bear in mind that this is not the only condition when IIS might unload your application. This could also happen if for example the process reaches certain thresholds of CPU or memory usage. Those are also configurable.

    It will also restart if some of the files in the bin folder are modified or the web.config or Global.asax is also modified. But this time it is not IIS that will unload the application, it is the ASP.NET runtime which listens for changes in those files. But in all cases it will result into Application_Start being triggered on the next request.

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

Sidebar

Related Questions

I have an ASP.NET Login App that creates a cookie called 'ASP_LOGIN77' and gives
I have asp.net web application. after I ran app the application_Start called. if I
I have ASP.NET application on hosting provider for some tasks that I can't do
Have an ASP.net web app which works fine for a few days, but then
I'm developing a ASP.Net MVC3 app which will have few hundred videos. I want
I have an ASP.NET app that sits on our intranet, using the WindowsIdentity to
I have an asp.net app that uses System.IO.Path.GetTempFileName() for temporary files. In the production
I have a ASP.NET Web Forms application that internally makes many SOAP and REST
I have an asp.net/C# app that uses subversion for source control. My app automatically
I have a function that updates a user in the asp.net membership provider. <AcceptVerbs(HttpVerbs.Post)>

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.