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

문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top