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

Page History: Taking Down a Website for Maintenance - ASP.NET

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: Sat, Oct 27, 2012, 11:38 AM


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-2024, Patrick Jasinski.