Ответ 1
Я нашел способ сделать это с помощью global.asax, но я хотел бы видеть другие решения...
void Application_BeginRequest(object sender, EventArgs e)
{
if ((bool) Application["SiteOpenService"] == false)
{
if (!Request.IsLocal)
{
HttpContext.Current.RewritePath("/Site_Maintenance.htm");
}
}
}
ссылка
http://www.codeproject.com/Tips/219637/Put-the-website-in-Maintanance-Mode-Under-Construc