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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:29:08+00:00 2026-05-11T21:29:08+00:00

We have an ASP.Net Web Application that is running in an IIS Web-Garden–which is

  • 0

We have an ASP.Net Web Application that is running in an IIS Web-Garden–which is configured to allocate up to four processes. In our Web Application the first user that hits the site causes the loading of all of the cached items. Since we are running in a IIS Web-Garden it ultimately takes up to four first time users to build up the cache for each of the four Web-Garden processes. This cache building takes 30-40 seconds, we’ve tried to make it faster, but it’s unlikely that that can be improved any more.

This is unacceptable, we have been tasked with making the site fast for everyone all the time (no waiting for cache initialization). I would like to employ a solution that crawls the site to pre-heat the cache. The problem is that the Web-Garden feature appears to be a black box–you have no way of controlling if/when IIS will decide to load that 2nd, 3rd or 4th process when hit with the next HTTP request.

To me this seems like a common problem, but searching for a solution has yielded little results. My question is, is there a way through HTTP headers or some other construct to give IIS a hint, that you would like it to load or at least route to process 2,3,4 etc?

  • 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-11T21:29:08+00:00Added an answer on May 11, 2026 at 9:29 pm

    According to the Microsoft engineers this is not possible with IIS 6. However they have added a new feature in IIS 7.5 and ASP.Net 4.0 that has a nice provision for exactly what i’m looking for here. It’s called the “preloadProvider”. Here is an example snippet below (very cool!).

    http://forums.iis.net/p/1158476/1907392.aspx

    Because a single application pool can contain multiple applications, you specify individual applications to be automatically started by using the following configuration in theapplicationHost.config file:

    <sites>
    
      <site name="MySite" id="1">
    
        <application path="/"
    
             preloadEnabled="true"
    
             preloadProvider="PrewarmMyCache" >
    
            <!--  Additional content -->
    
        </application>
    
      </site>
    
    </sites>
    
    
    
    <!-- Additional content -->
    
    
    
    <preloadProviders>
    
         <add name="PrewarmMyCache"
    
             type="MyNamespace.CustomInitialization, MyLibrary" />
    
    </preloadProviders>
    

    When an IIS 7.5 server is cold-started or when an individual application pool is recycled, IIS 7.5 uses the information in the applicationHost.config file to determine which Web applications need to be automatically started. For each application that is marked for auto-start, IIS7.5 sends a request to ASP.NET 4.0 to start the application in a state during which the application temporarily does not accept HTTP requests. When it is in this state, ASP.NET instantiates the type defined by the preloadProvider attribute (as shown in the previous example) and calls into its public entry point.
    You create a managed auto-start type with the necessary entry point by implementing the IProcessHostPreloadClient interface, as shown in the following example:

    public class CustomInitialization :  System.Web.Hosting.IProcessHostPreloadClient
    
    {
    
        public void Preload(string[]  parameters)
    
        {
    
            // Perform initialization.
    
        }
    
    }
    

    After your initialization code runs in the Preload method and the method returns, the ASP.NET application is ready to process requests.
    With the addition of auto-start to IIS 7.5 and ASP.NET 4.0, you now have a well-defined approach for performing expensive application initialization prior to processing the first HTTP request. For example, you can use the new auto-start feature to initialize an application and then signal a load-balancer that the application was initialized and ready to accept HTTP traffic.

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

Sidebar

Related Questions

We have an ASP.NET web application running in IIS that uses the SoapHttpClientProtocol class
We have a asp.net 2.0 web application that is running on IIS7. It is
I have an ASP.NET web application that is using forms authentication. Everything is configured
I have an ASP.net web service that I'm using for a web application which
We have an asp.net 4.0 (integrated mode) web application that runs on iis 7.5
I have one ASP.NET web application running at the web server root which provides
I have an ASP.NET 4.0 MVC web application running on IIS 6.0 with a
I have a website that a converted into a web application running ASP.NET webforms.
I have a asp.net web application that uses C#. It logs in on a
I have an ASP.NET web application that, for whatever reason, when it is deployed

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.