Custom app_offline.htm file during publish

Posted by Charlino on Stack Overflow See other posts from Stack Overflow or by Charlino
Published on 2010-05-17T00:33:37Z Indexed on 2010/05/17 0:40 UTC
Read the original article Hit count: 1189

When I publish my ASP.NET MVC application it generates a app_offline.htm file to take the site offline while it updates the website and then deletes the file once the publish is successful.

This is cool and I really like the idea, but I want to create my own custom app_offline.htm file that the publish action is aware of and put it somewhere where it doesn't effect my development site - i.e. it doesn't sit in the root of my development site rendering it offline all the time.

TIA,
Charles

EDIT: From the comments on Scott Gu's post about app_offline.htm, it seems that customization of the app_offline.htm file wasn't possible with VS 2005 - has this changed with VS 2008 and now VS 2010?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc