Wednesday, November 3, 2010

Displaying a temporary page while upgrading an ASP.NET website

Having used this feature before, I knew that there was a simple way to have your ASP.NET 2.0 web site close down and show a temporary (or under construction, etc) page while the website is being upgraded (or deployed, etc), but I couldn’t remember the details.

It took a few tries before I found the relevant details via Google, so I thought I’d post about it to remind me in future.

Basically, if you copy a file called app_offline.htm into the web site’s root folder then ASP.NET (version 2 onwards) will just serve that file in response to any and all new requests.

No comments: