How to make an application offline in ASP.NET 2.0 - ASP.NET

How to make an application offline in ASP.NET 2.0.

Microsoft's Internet Information Services web server software is used to make an application offline. The IIS is instructed to route all incoming requests for the web site to another URL automatically.

Steps for application configuration:

1. In the properties of IIS manager, choose Virtual Directory tab and indicate that the content for this application should come from "A redirection to a URL."
2. Then enter the same URL to redirect.

Ways to take an asp.net application offline:

1. Stop IIS server.
2. Redirect your website to an ErrorPage.htm file which displays appropriate information/feedback to users requesting the website.
3. In the web.config look for and set it to false. This will return a default ASP.Net 4040 status page to the requesting end users.
<httpRuntime enable="false" />

4. Add to App_Offline.htm page to the root of the website. To bring the application back up, simply delete this file.
What are script injection attacks? - ASP.NET
What are script injection attacks? - Script injection attacks called Cross-site scripting (XSS) attacks exploit vulnerabilities..
What is Authentication in ASP.NET?
What is Authentication in ASP.NET? - Authentication is the process of verifying user’s details..
Login controls vs Forms authentication - ASP.NET
ASP.NET Login controls vs Forms authentication - Login controls are part of ASP. Net’s UI controls collection which allows users to enter their...
Post your comment