Solved

How to use app_offline.htm in asp.net

Posted on 2009-04-10
2
419 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 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Signal R -send data to client: only if they are allowed to see it ? 1 50
asp day pilot 3 18
Need help with building query string 2 19
.NET 2008 VB and C# 6 27
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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

785 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