Related Tags:
Asp.Net It was developed by Microsoft to allow programmers to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server Pages (ASP) technology. Learn More, ASP.NET MVC The ASP.NET MVC framework is a lightweight, highly testable presentation framework that (as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages and membership-based authentication. The MVC framework is defined in the System.Web.Mvc assembly. Learn More, IIS (Internet Information Services) IIS Stands for "Internet Information Services." IIS is a web server software package designed for Windows Server. It is used for hosting websites and other content on the Web. Microsoft's Internet Information Services provides a graphical user interface (GUI) for managing websites and the associated users. Learn More, web.config A configuration file (web.config) is used to manage various settings that define a website. The settings are stored in XML files that are separate from your application code. ... Generally a website contains a single Web.config file stored inside the application root directory. Learn More, ASP.NET Core ASP.NET Core is a free and open-source web framework and successor to ASP.NET, developed by Microsoft. It is a modular framework that runs on both the full .NET Framework, on Windows, and the cross-platform .NET. However ASP.NET Core version 3 works only on .NET Core dropping support of the .NET Framework. Learn More,

App_Offline.htm page not working instead showing "The service is unavailable" ?

Description:I have setup App_Offline.htm page but when I try to enable this page it shows the message "The service is unavailable" instead of displaying the actual App_Offline.htm page.
I have setup the page by looking at the following link, setup the App_Offline.htm page

Posted by: | Posted on: Oct 03, 2022

1 answers

Replies

3

Hi,
For this I believe you just need to setup the error page or if you have already setup the error page you just need to add the entry for 503 error code in your web.config’s httpErrors section as shown.

<httpErrors errorMode="Custom" existingResponse="Replace">
<error statusCode="503" path="App_Offline.htm" responseMode="File" />
</httpErrors>
Hope this will fix your issue.

Replied by: | Replied on: Oct 13, 2022



Reply
×

Code block Hyperlink bold Quotes block Upload Images

Preview