Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Taking Down a Website for Maintenance - ASP.NET

RSS
Modified on Wed, Nov 11, 2009, 12:30 PM by Administrator Categorized as ASP·NET Web Forms
Two things are required to take down an ASP.NET website for maintenance.

  • A file named app_offline.htm must be in the root of the web application. Note that the file extension is .HTM — NOT .HTML!

  • The file must be at least 512 bytes long.

Whenever anyone tries to access any page on the site under the above conditions, they are presented with the contents of the app_offline.htm file.

Sample APP_OFFLINE.HTM file {copytext|appoffline}
<html>
<head>
</head>
<body>
This website is temporarily offline for maintenance.  Check back soon.
<!-–
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
–->
</body>
</html>

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2012, Patrick Jasinski.