Truemag

  • Categories
    • Tips And Tricks
    • Internet
    • PHP
    • Javascript
    • CSharp
    • SQL Server
    • Linux
  • Lastest Videos
  • Our Demos
  • About
  • Contact
  • Home
  • Write With Us
  • Job Request
Home Tips And Tricks Display Site Down Or Maintenance Message In ASP.NET Web Application

Display Site Down Or Maintenance Message In ASP.NET Web Application

When you’re making big changes or performing maintenance on a site that requires hours or days to finish, you should bring down your ASP.NET web application in a convenience way and display Site Down or Maintenance message to your visitors.

ASP.NET provides a simple way to implement this functionality is by using an app_offline.htm file that is placed in the root of the asp.net web application.

When ASP.NET sees the app_offline.htm file, it will display content of the file instead request your application. And we definitely don’t want this occur as the site will not function properly and annoy visitors.

Implement app_offline.htm to display the site down/maintenance message

  • 1. Place the app_offline.htm file in the root of your ASP.NET web application.
  • 2. When you’re done, simply delete or rename the file.
  • 3. Your site will come back as normal.

Note: the app_offline.htm file must be greater than 512 bytes of content.

An example of app_offline.htm

This HTML content below will display the outage message:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Maintenance Mode - Outage Message</title>
</head>
 
<body>
 
<h1>Maintenance Mode</h1>
 
<p>We're currently undergoing scheduled maintenance. We will come back very shortly.</p>
 
<p>Sorry for the inconvenience!</p>
 
</body>
</html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Maintenance Mode - Outage Message</title> </head> <body> <h1>Maintenance Mode</h1> <p>We're currently undergoing scheduled maintenance. We will come back very shortly.</p> <p>Sorry for the inconvenience!</p> </body> </html>

app_offline Outage Message

app_offline Outage Message

[download id=”19″ format=”1″]
Mar 9, 2012Hoan Huynh
JQuery Create Textbox With Count Down Limit CharactersPHP SSH To Remote Server And Execute Command
You Might Also Like:
  • How To Check And Start An Application If It Is Not Running In Windows
  • Show Error Message On WordPress Custom Login Template Page
  • PHP display all errors and warnings
  • How To Track Website With Multiple Google Analytisc Accounts
  • Display Technorati Media Ads In Iframe
  • ASP.NET Provides Best Facilities in Web Application Development
  • Google Adsense has re-enabled ad serving to my site
  • Internet Explorer 9 Has Modified This Page To Prevent Cross-Site Scripting
  • Display User Current Location On Google Map
  • Application pool ‘abc’ suffered a fatal communication error with the Windows Process Activation Service
Hoan Huynh

Hoan Huynh is the founder and head of 4rapiddev.com. Reach him at [email protected]

10 years ago Tips And Tricksapp_offline, ASP.NET, HTML849
0
GooglePlus
0
Facebook
0
Twitter
0
Digg
0
Delicious
0
Stumbleupon
0
Linkedin
0
Pinterest
Most Viewed
PHP Download Image Or File From URL
24,456 views
Notepad Plus Plus Compare Plugin
How To Install Compare Text Plugin In Notepad Plus Plus
21,836 views
Microsoft SQL Server 2008 Attach Remove Log
Delete, Shrink, Eliminate Transaction Log .LDF File
17,652 views
JQuery Allow only numeric characters or only alphabet characters in textbox
14,986 views
C# Read Json From URL And Parse/Deserialize Json
11,719 views
4 Rapid Development is a central page that is targeted at newbie and professional programmers, database administrators, system admin, web masters and bloggers.
Recent Posts
  • Things to Learn about Installingderm Loan Type S
  • Online Photo Editor – Free Photoediting Software
  • A Guide to Finding the Best Paper Sellers
  • Photoediting in Home Isn’t Hard to Do!

  • Free Photo Editor Online
Categories
  • CSharp (45)
  • Facebook Graph API (19)
  • Google API (7)
  • Internet (87)
  • iPhone XCode (8)
  • Javascript (35)
  • Linux (27)
  • MySQL (16)
  • PHP (84)
  • Problem Issue Error (29)
  • Resources (32)
  • SQL Server (25)
  • Timeline (5)
  • Tips And Tricks (141)
  • Uncategorized (647)
Recommended
  • Custom Software Development Company
  • Online Useful Tools
  • Premium Themes
  • VPS
2014 © 4 Rapid Development