How to take an ASP.NET application off line . . .

. . . without turning off IIS

Why would you want to do this?

Well, you might have more than one application running under a specific IIS server instance.  Or, maybe you don’t have access to IIS so you can turn it off.  But, you still want to take the application off line so that you can perform maintenance on it.

All you need to do is create an app_offline.htm file and place it in the application root directory.  Whatever is in app_offline.htm will display instead of your application whenever someone visits the site.  To make the application available again, remove the app_offline.htm file from the application directory.

Technorati Tags: ,

del.icio.us Tags: ,

Related Post

Leave a Reply

Comment Policy:

  • You must verify your comment by responding to the automated email that is sent to your email address. Unverified comments will never show.Leave a good comment that adds to the conversation and I'll leave your link in.
  • Leave me pure spam and I'll delete it.
  • Leave a general comment and I'll remove the link but keep the comment.

Notify me of followup comments via e-mail

Bear