开发者

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?

开发者 https://www.devze.com 2022-12-28 05:01 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消