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?
Asked
Active
Viewed 1,357 times
1
-
please explain it properly, do you want to use routconfig for default page? – Bhupendra Dec 11 '15 at 09:28
-
I do not know it sorry, I just want to display a custom page i.e. "Under Construction" page when I publish the application to IIS sever. – Jack Dec 11 '15 at 09:31
-
http://stackoverflow.com/questions/9129633/the-best-way-to-redirect-all-views-to-from-one-view-e-g-underconstructionview – Zaki Dec 11 '15 at 09:38
-
@Zaki Thanks, I had look at that page before creating this issue. But I am looking a better approach with a smart integration to the project. Any idea? – Jack Dec 11 '15 at 10:10
1 Answers
1
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.

Community
- 1
- 1

resnyanskiy
- 1,607
- 1
- 24
- 24