Is there a way I can still use app_offline.htm on my ASP.NET MVC 2 projects? If not, is there an alternative method?

StackOverflow https://stackoverflow.com/questions/2686001

Question

I loved the features of using app_offline.htm on my ASP.NET WebForm based sites.
Upload the file and your app is immediately "offline". Snappy.

Now that I'm using MVC 2, I noticed that this no longer works.
Is there a way to get this behavior in ASP.NET MVC 2 like it did in WebForms?
If not, what alternative do you prefer?

Was it helpful?

Solution

app_offline.htm works on MVC sites. You need to make sure it's 512 bytes or larger. I use it all the time when updating a couple of MVC sites.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top