Click here to Skip to main content
15,886,519 members
Articles / Web Development / ASP.NET
Tip/Trick

App_Offline.htm

Rate me:
Please Sign up or sign in to vote.
4.50/5 (9 votes)
5 Mar 2010CPOL 27.2K   2  
A tip about App_Offline.htm
In this tip, you will learn what happens when you place an App_Offline.htm file in the root of a web application directory, and also what happens when you remove the file.

If you place a file with the name App_Offline.htm in the root of a web application directory, ASP.NET 2.0 will shut-down the application, unload the application domain from the server, and stop processing any new incoming requests for that application.

ASP.NET will also then respond to all requests for dynamic pages in the application by sending back the content of the App_offline.htm file (for example: you might want to have a “site under construction” or “down for maintenance” message).

Once you remove the App_offline.htm file, the next request into the application will cause ASP.NET to load the application and app-domain again, and it will be back to normal.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Intuit India
India India


A software professional for more than 17+ years building solutions for Web and Desktop applications.

Currently working at Intuit India.

Website: Learn By Insight
Github: Sandeep Mewara
LinkedIn: Sandeep Mewara

Strongly believe in learning and sharing knowledge.



Comments and Discussions

 
-- There are no messages in this forum --