To take a Web application offline before deployment

Steven Smith pointed out a very nice Feature regarding to ASP.NET Deployment.

In ASP.NET 2.0, while you’re in the process of updating your site, you can expose a friendly error page by including a file called app_offline.htm in your site’s root. If this file exists, all requests to the site will be redirected to this page. The only way to get around this is to delete the file. You can read more about this feature here.

1.) Create a file called App_offline.htm and place it in the root of your target Web site.

2.) Put a friendly message in the App_offline.htm file to let clients know that you are updating the site. While the App_offline.htm file exists, any request to the Web site will redirect to the file.

* Remember to remove the App_offline.htm file after you are finished copying files.

Very important and nice feature!

0 comments ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment