Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display downtime page when publishing application

Is it possible in ASP.NET MVC to display a downtime page when publishing a project out to a server? Right now, if I hit the page while I am publishing I get an error:

Could not load type "App.MvcApplication"

It would be awesome if we could setup a downtime page so that users know to come back at a later time, instead of thinking that the app is busted.

like image 886
stevebot Avatar asked Jan 20 '13 00:01

stevebot


1 Answers

You could add an app_offline.htm page to your application root, traffic will be redirected to that page until you remove or rename it.

More info

  • Scott Gu's App_Offline.htm
  • App_Offline.htm and working around the "IE Friendly Errors" feature
  • Will app_offline.htm stop current requests or just new requests?
like image 95
bevacqua Avatar answered Sep 24 '22 05:09

bevacqua