

Scroll down a little more in nfig to the configuration element.

The bolded attribute in the configuration snippet shows what to add to the configuration entry. For applications where you want global application initialization to occur, you normally want the associated application pool to be started and running. Modify the application pool entry so that the application pool is always running. (Remember to run the text editor with the "Run as Administrator" option!)įind the configuration section, and then look for the application pool entry with a name of ".NET v4.5". Open up the nfig file located at %WINDIR%\system32\inetsrv\config in Notepad. Since application pool behaviors can only be configured in nfig, running application initialization whenever an application pool starts up is considered part of the "global" application initialization settings. In this walkthrough, you will configure a sample application to always be initialized when the application pool associated with the application starts up. Configuration in the nfig file contains "global" application initialization settings, while an application-level web.config file contains "local" application initialization settings. The Application Initialization feature can be configured in two places: the machine-wide nfig file, and the application-level web.config file. There are no known bugs for this feature at this time.The Appendix at the end of this document includes the sample application and instructions on setting up the application on your machine. This walkthrough also uses an ASP.NET 4.5 application to demonstrate the Application Initialization feature. The Application Initialization feature also supports integration with the IIS Url Rewrite Module to support more complex handling of placeholder content while an application is still initializing. The Application Initialization feature is configured through a combination of global and application-specific rules that tell IIS 8.0 how and when to initialize web applications. While an application is being initialized, IIS 8.0 can also be configured to return static content as a placeholder or "splash page" until an application has completed its initialization tasks. The IIS 8.0 Application Initialization feature enables website administrators to configure IIS 8.0 to proactively perform initialization tasks for one or more web applications. Larger and more complex web applications may need to perform lengthy startup processing, prime in-memory caches, generate content, etc. Application Initialization was built-in for IIS 8.0.Īpplication Initialization was released as an out-of-band module for IIS 7.5.Īpplication Initialization was not supported for IIS 7.0.Ī common problem faced by website administrators is the need to perform initialization tasks and "warm up" tasks for a web application.
