Solved

How to use app_offline.htm in asp.net

Posted on 2009-04-10
2
421 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

Accepted Solution

by:
Ajay Sharma earned 50 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

735 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