How to Make an Application Offline in ASP.NET 2.0
page 1 of 5
Published: 27 Jun 2008
Abstract
There are different approaches to taking an application offline, for such things as say maintenance purposes. The latest addition is App_Offline.htm in ASP.NET 2.0 and this article demonstrates how to perform this task. First, is a brief overview of IIS and then the usage of httpRuntime and App_Offline.htm are provided along with detailed analysis and screenshots.
by SANJIT SIL
Feedback
Average Rating: 
Views (Total / Last 10 Days): 31185/ 83

Introduction

In the real world, there may be downtime for a web site even after web application has been deployed and is live on the Internet or intranet. This is because most applications require some updating with the flow of time. For example, there may be the possibility of error in an application in the form of a bug; there may be an enhancement for new features or modification of existing features, etc. After fixing those bugs and implementing the enhancements, the updated code needs to be deployed to the production environment. This may involve updating pages, configuration files, making database modifications, image update, DLL update and so on.

When updating a web application that is currently in production, it is best to take the application offline so that users can understand that there is some work going on for the application. This can be done in a variety of ways, from simply stopping the web server software to displaying a web page that informs the user that the site is offline for maintenance. The bottom line is not to show customer/user any error page, instead inform them with a proper message so that they will not be frustrated even though the application is offline. The sample code snippets have been written in C#.


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2017 ASPAlliance.com  |  Page Processed at 2017-07-20 6:31:31 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search