Questions tagged [app-offline.htm]

app-offline.htm is the name of an html file that can be used to put an asp.net based website (starting from ASP.NET 2.0) offline.

Starting from ASP.NET 2.0 app-offline.htm is the name of an file that can be used to put an asp.net based website offline. If file with this name is placed in the root of a web application directory, ASP.NET 2.0 will shut-down the application, unload the application domain from the server, and stop processing any new incoming requests for that application. will also then respond to all requests for dynamic pages in the application by sending back the content of the app_offline.htm file, so usually this file contains a message stating the reason for site's unavailability.

This provides a convenient way to take down an application for example while lenghty maintenance operations are performed.

When app_offline.htm is present, will return this http status code:

HTTP/1.1 503 Service Unavailable

Once the app_offline.htm file is removed, the next request into the application will cause ASP.NET to load the application and app-domain again, and the application will continue to operate in its usual way.

73 questions
0
votes
0 answers

Closed/disable/pause application in a certain time interval

I have an asp.net webform app. I don't want users to use the whole app in the weekend (from Friday 6pm to Sunday 23:59:59pm everyweek) What I normally do is that on Friday I put a special asp.net file named "app_offline.htm" on the root and the…
Ronaldinho Learn Coding
  • 13,254
  • 24
  • 83
  • 110
0
votes
1 answer

Dot Net Nuke app_offline randomly being generated

We have had multiple DNN sites running for quite a few months now without any issues. Twice in the last 3 days our sites have gone offline by the addition of the app_offline.htm file in the root dir. There is only one developer with access to the…
clownshoes
  • 345
  • 2
  • 11
0
votes
1 answer

AWS ELB terminates instance when using offline.htm for IIS

Currently we using AWS ELB with multiple instances for hosting our IIS website(s). When using app_offline.htm to display a maintenance message, the ELB healthcheck will terminate all the instances. This is due to the fact that the app_offline.htm…
0
votes
0 answers

Service Unavailable occuring even when app_offline.htm in use

I have an ASP.NET site hosted on shared hosting so direct access to logs is unavailable. The site has been stable but recently it's been going down every few minutes with a "Service Unavailable" message. Funny thing is, I will also encounter this…
Gavin
  • 5,629
  • 7
  • 44
  • 86
0
votes
1 answer

Is there a way to shut down an *entire* IIS site and all applications with a friendly message?

Currently we have a multiple sites with multiple virtual applications. Like so: Site1 /app1 /app2 /app3 Site2 /app1 /app2 /app3 In this scenario, "app1", "app2" and "app3" for both sites point to the same physical folder.…
Thomas
  • 63,911
  • 12
  • 95
  • 141
0
votes
0 answers

Disable ASP.NET MVC web site for maintenance and display appropriate page

I want to add enable/disable asp.net mvc website feature, to achieve this I just replace web.config content to
igorGIS
  • 1,888
  • 4
  • 27
  • 41
0
votes
1 answer

Offline Form Submission - Data SYnc

We have a Loan Management System, and as everybody knows there is Field Investigation like Residence, Office, Business Verification. So we have a requirement to actually support offline data entry also. Meaning, the Field Investigation officer may…
Ankur Singhal
  • 26,012
  • 16
  • 82
  • 116
0
votes
1 answer

create a "save for offline reading" button

So I am exploring different ways to create HTML5 mobile apps. Trying to avoid mobile frameworks and complex APIs such as Sencha and Titanium. One idea I have is make use of the "save for offline reading" feature. Is it possible to create a button…
appthat
  • 816
  • 2
  • 10
  • 30
0
votes
0 answers

slow loading site after IIS restart

When my site is out of service(IIS Restart - Service unavailable), it takes about 10 to 20 minutes to come up my site,In this case,If I put 'app_offline.htm' in the root of the site comes up in just a few seconds. Now I want to perform automatic…
0
votes
1 answer

How to Application_End the file app_offline.htm is automatically created?

Is it possible? How to Application_End the file app_offline.htm is automatically created or rename old file to 'app_offline.htm' And in the Application_start to remove or rename this file? My goal is that the site is down(Application_OnEnd or…
0
votes
2 answers

How to remove auto appended Html tag in visual force page?

I am working on html5 offline mode in sales-force. I added following line to cache current page. I turn off the developer mode and check the console. It is by default taking parent tag as follow:
0
votes
1 answer

Is this continuously-generated app_offline.htm file going to plague or irritate users?

While testing my Razor/asp.net web site, I continually find a file named "app_offline.htm" in my Recycle Bin. Is this something that will plague the poor unsuspecting visitor to my site?
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
0
votes
1 answer

Do serviceAutoStartProviders run in combination with App_Offline.htm?

I've been looking at the 'Application Initialization' module for IIS 7.5 (which is baked in to IIS 8) and serviceAutoStartProviders which can be set to initialize services when an app loads up. I'm wondering what happens to serviceAutoStartProviders…
Remi Despres-Smyth
  • 4,173
  • 3
  • 36
  • 46
1 2 3 4
5