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 publis
Have you seen this?
App_Offline.htm
It might not be (exactly) what you want but it does solve the issue I think.