Display a custom html page when publishing to IIS in MVC

1.4k Views Asked by At

I have an MVC5 application and I want to display an html (or htm) page while publishing the application to IIS server. So, I tried different methods by using app_offline.htm as indicated on ASP.NET Web Deployment using Visual Studio: Deploying a Code Update. But none of them works properly in MVC. Is there a better approach to make this?

1

There are 1 best solutions below

0
resnyanskiy On

Seems like app_offline.html customization not supported yet. See https://github.com/aspnet/Tooling/issues/530. Also, there is similar question Custom app_offline.htm file during publish.