Skip to Content
Introducing .NET 4.0: with Visual Studio 2010
book

Introducing .NET 4.0: with Visual Studio 2010

by Alex Mackey
February 2010
Beginner content levelBeginner
400 pages
11h 13m
English
Apress
Content preview from Introducing .NET 4.0: with Visual Studio 2010

10.16. Autostart Web Applications

Some ASP.NET applications perform a lot of startup work (usually in Global.asax's Application_Load() method), such as preloading or caching data. ASP.NET 4.0 introduces a new feature called autostart that enables you to define code to be run as soon as your application is installed (or the app pool is recycled). Until this startup work has completed, ASP.NET will prevent access to the application.

Not all applications will be able to benefit from this facility, though, because they must do the following:

  • Be running on Windows Server 2008 R2 and IIS 7.5

  • Be written in ASP.NET 4.0

To use autostart, add the following setting to the applicationHost.config file (at C:\Windows\System32\inetsrv\config\):

<applicationPools> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ASP.NET 3.5 For Dummies®

ASP.NET 3.5 For Dummies®

Ken Cox
ASP.NET 4 Unleashed

ASP.NET 4 Unleashed

Stephen Walther, Kevin Hoffman, Nate Dudek

Publisher Resources

ISBN: 9781430224556Purchase book