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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:06:41+00:00 2026-05-31T04:06:41+00:00

We are using IIS7 to host an asp.net web-based application. In this environment administrators

  • 0

We are using IIS7 to host an asp.net web-based application.
In this environment administrators and developers can deploy code to the application on a regular basis.

The new code or app goes as a DLL to the ASP.NET bin folder. Upon deployment of the new DLL, IIS restarts the process, impacting (slowing down) all online users.

Is there a way to configure IIS to run the process in the background and once ready make the switch from old state into new without impacting the users?!

Thanks in advance for your feedback!

  • 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-31T04:06:43+00:00Added an answer on May 31, 2026 at 4:06 am

    IIS already does this, that’s what recycling is all about. IT’s loading the DLL’s while the old version of the application is still running. only after this is completed the recycling is complete.

    However loading the DLL’s is only part of getting web applications ready, there might also be initial loads like loading/caching the user db etc.
    These actions are not part of the recycle process, they happen after all DLL’s reloaded and the recycling is already completed.

    A while back I ran into this issue with an application that had a huge startup time due to heavy db activity/caching during startup. So I was interested if there is some functionality that allows us to execute code before the recycle is marked as completed, so that the application is first considered recycled when everything is ready to run. Basically what I wanted is some kind of staging functionality.
    I was in contact with the IIS team regarding this issue, sadly they told me that no such functionality exists, nor is it planned.

    To solve this you could try do the following:

    • Use alternating deploys:
      You setup 2 Websites with separate application pools. One of them is the LIVE website the other one is the STAGED website. If you want to deploy changed you simply deploy to the STAGED website. After everything is loaded/cached etc. you switch the URL settings of the web applications to reroute incoming requests from the LIVE to the STAGED one. So the LIVE one becomes the new STAGED and the other way around. The next deploy would then go to the new STAGED again and so on.

    UPDATE
    Apparently they have created a IIS Module that provides this functionality by now:

    IIS Application Warm-Up Module for IIS 7.5

    The IIS team has released the first beta test version of the
    Application Warm-Up Module for IIS 7.5. This makes warming up your
    applications even easier than previously described. Instead of writing
    custom code, you specify the URLs of resources to execute before the
    Web application accepts requests from the network. This warm-up occurs
    during startup of the IIS service (if you configured the IIS
    application pool as AlwaysRunning) and when an IIS worker process
    recycles. During recycle, the old IIS worker process continues to
    execute requests until the newly spawned worker process is fully
    warmed up, so that applications experience no interruptions or other
    issues due to unprimed caches. Note that this module works with any
    version of ASP.NET, starting with version 2.0.

    For more information, see Application Warm-Up on the IIS.net Web site.
    For a walkthrough that illustrates how to use the warm-up feature, see
    Getting Started with the IIS 7.5 Application Warm-Up Module on the
    IIS.net Web site.

    See:

    http://www.asp.net/whitepapers/aspnet4

    If you use ASP.NET 4 Auto Start feature:

    You can still choose to auto-recycle the worker processes from time to
    time. When you do that, though, the app will immediately restart and
    your warm up code will execute (unlike today – where you have to wait
    for the next request to-do that).

    The main difference between Warm Up and Auto Start feature is that the Warm Up Module is part of the recycling process. Rather than blocking the application for requests, while running the init code.
    Only thing you get by using the Auto Start feature is that you don’t have to wait for a user to hit the page, which does not help your case.

    See the Gu’s blog post:

    http://weblogs.asp.net/scottgu/archive/2009/09/15/auto-start-asp-net-applications-vs-2010-and-net-4-0-series.aspx

    UPDATE 2:

    Sadly the Warmup Module has been discontinued for IIS 7/7.5:

    http://forums.iis.net/t/1176740.aspx

    It will be part of IIS8 though (It’s now called Application Initialization Module):

    http://weblogs.asp.net/owscott/archive/2012/03/01/what-s-new-in-iis-8.aspx

    UPDATE 3:

    As pointed out in the comments the Warmup Module resurfaced for IIS 7.5 as Application Initialization Module for IIS 7.5 after IIS 8 was released:

    http://www.iis.net/downloads/microsoft/application-initialization

    • 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 Web Application project that I am using to host a
I have a web application which is written in ASP.NET 4. I'm using IIS7
I'm trying to import a web application into IIS7 using Web Deploy. I packaged
Using asp.net in visual studios and IIS7 when i get a host. I have
I've got an ASP .Net application running on IIS7. I'm using the current url
I'm building a small web application with ASP.NET MVC 2, using db4o as a
I'm using IIS7 and ASP.NET. Basically building a simple CMS and need to handle
I've been developing a WCF web service using .NET 3.5 with IIS7 and it
In my ASP.Net application I'm generating a Excel file using MsExcel Object Libby (Com-InterOp)
I am trying to host my web application in IIS7 (for testing purposes). I

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.