Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to use app_offline.htm in asp.net

Posted on 2009-04-10
2
Medium Priority
?
429 Views
Last Modified: 2013-11-07
When I put the app_offline.htm file on the root of my asp.net application the application shuts down, but I get a HTTP 404 message. The content of app_offline.htm is supposed to be sent to the browser. I get the same result on the GoDaddy server as my local computer in Debug.

What am I missing?

I'm using Visual Web Developer 2005 Express Edition and .NET 2.0
0
Comment
Question by:Ola3
2 Comments
 
LVL 18

Accepted Solution

by:
Ajay Sharma earned 200 total points
ID: 24115431
This link shows some workaround of this problem:

http://asp-net-whidbey.blogspot.com/2006/04/aspnet-20-features-appofflinehtm.html

According to this article keep your app_offline.htm file's size more than 512 bytes, and the 404 error will not be returned to you.
0
 

Author Comment

by:Ola3
ID: 24115528
You are right the size of the file has to be more than 512 bytes. Thank you!
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question