473,396 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Web site not available

Hello,

I have a site created by asp net, due to the weekend construction, this
particular site need to be shut down during the weekend.

I wonder if there is a quick way to have a page or whatever method
(without recompiling the whole apps), so that when users try accessing
the page, they will will be prompt that the site is not currently
available.

One of my concern is since ppl work on Friday until the end of the day,
but I don't, not even weekend. Is there a solution where I can
pre-schedule it to stop on Sat morning? (or maybe in the IIS?)

Thanks in advance. Your help would be greatly appreciated.

Mar 16 '06 #1
7 1245
All you have to do is put a file named

App_offline.htm

in the Application's directory.

ASP.NET will detect its presence and any requests for any/all
pages in the application will cause that page to be displayed.

Put any information you want your users to know in that page.

Use only "standard HTML" in that page...no scripting or objects.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<sw**********@yahoo.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
Hello,

I have a site created by asp net, due to the weekend construction, this
particular site need to be shut down during the weekend.

I wonder if there is a quick way to have a page or whatever method
(without recompiling the whole apps), so that when users try accessing
the page, they will will be prompt that the site is not currently
available.

One of my concern is since ppl work on Friday until the end of the day,
but I don't, not even weekend. Is there a solution where I can
pre-schedule it to stop on Sat morning? (or maybe in the IIS?)

Thanks in advance. Your help would be greatly appreciated.

Mar 16 '06 #2
Thanks,

What do you have by the Application's directory? Do you mean the
directory or folder where all my aspx, aspx.vb sit? I've tried that,
but there is not difference.

Mar 16 '06 #3
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ue**************@TK2MSFTNGP09.phx.gbl...
All you have to do is put a file named

App_offline.htm

in the Application's directory.


Is it OK to leave the file in the app root permanently and rename it, say,
to zApp_offline.htm while the site is running normally?

Or should it be deleted when not required?
Mar 16 '06 #4
sw**********@yahoo.com wrote:
Thanks,

What do you have by the Application's directory? Do you mean the
directory or folder where all my aspx, aspx.vb sit? I've tried that,
but there is not difference.

You have to be running the application under ASP.NET 2.0

--
Ray Booysen
rj********@rjb.za.net
Mar 16 '06 #5
re:
Is it OK to leave the file in the app root permanently and rename it, say, to zApp_offline.htm
while the site is running normally?
Yes. Renaming is probably the best way to go.

I rename mine to App_offline.htm.bak but any renaming will do.

re: Or should it be deleted when not required?
You never know when you'll need it again, so keep it around.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Mark Rae" <ma**@markN-O-S-P-A-M.co.uk> wrote in message
news:OR*************@TK2MSFTNGP10.phx.gbl... "Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ue**************@TK2MSFTNGP09.phx.gbl...
All you have to do is put a file named

App_offline.htm

in the Application's directory.


Is it OK to leave the file in the app root permanently and rename it, say, to zApp_offline.htm
while the site is running normally?

Or should it be deleted when not required?

Mar 16 '06 #6
re:
You have to be running the application under ASP.NET 2.0
Thanks, Ray.

I should have pointed that out.

For ASP.NET 1.1, the usual route is to have a directory which only has
a single default document with the maintenance info, and redirect all 404's
to the default document.

Then, using the IIS Manager, change the main application's virtual directory
to point to the single-page directory's physical directory.

When you're done, change it back.

There's more complex ways to do this in 1.1, but that works OK.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Ray Booysen" <rj***********@rjb.za.net> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... sw**********@yahoo.com wrote:
Thanks,

What do you have by the Application's directory? Do you mean the
directory or folder where all my aspx, aspx.vb sit? I've tried that,
but there is not difference.

You have to be running the application under ASP.NET 2.0

--
Ray Booysen
rj********@rjb.za.net

Mar 16 '06 #7
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ed**************@TK2MSFTNGP14.phx.gbl...
Yes. Renaming is probably the best way to go.


Thanks.
Mar 16 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: D. Lee Christopher | last post by:
Can anyone point me to a good tutorial for creating a site-level search applet? I am trying to create a virtual catalog of sorts, and I would like to be able to search the catalog and have the...
8
by: Mr. x | last post by:
Hello, I need a script for counting the no. of enters on my site, please. I need a check that for the same user in the same day - if the user enter several times, it is count once (or something...
4
by: George Hester | last post by:
My site is all one color basically. But I'd like to give the user the ability to make the site a color of their choice. I have it set up so that they can choose the color of the logon page and save...
2
by: Marcus | last post by:
I have seen many posts of people with the same problem as me (attached below), but I have yet to see any solutions posted. Has anyone figured out how to deploy an Asp.net web site to the webserver...
6
by: Jeremy S. | last post by:
Sorry if this is too far OT - I posted this in the IIS group and got no response - so here goes: What would be a good or recommended way to make a Web site in IIS6 inaccessible to users on the...
1
by: DrShevek | last post by:
Hi, Apologies if this has been discussed before but I have tried to search and found nothing really helpful as I am not entirely sure exactly what to search for..! Is it possible to detect...
2
by: rdemyan via AccessMonster.com | last post by:
I currently have code that brings up a form where the user can see a list of spreadsheets on my ftp site, select one and then download and import the spreadsheet into a table. All of this...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
7
by: ThunderMusic | last post by:
Hi, Ok, I find myself having a lot of troubles with URL Rewriting and I've seen on the net that in some situations, indexers have difficulty indexing sites because of some flaws in the url...
9
by: pythonewbie | last post by:
Hi all, I am newbie in Python, my wish would be to create python applications for both Linux/Win32. I am stucked on creating a function to get the Python install directory (and site-packages...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.