473,507 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setup Under Maintenance page for asp.net website

Hi,

I want to know how to setup the "Under Maintenance" page for the
website?

Here is the thing:

I have application setting in web.config called "MMode". I set it to
"Y" when I need to do site maintenance such as changes in the backend
database, etc.
Then inside aspx pages, I check if MMode is set to "Y" and if so, I
redirect to the custom under maintenance page.

This is all fine as long as website is running.
But now if the website is Stopped inside IIS itself, it will not
redirect to the under maintenance page since website is not running at
all.

So in such situation how do I notify users that the site is down for
maintenance by displaying custom page?
Thanks in advance.

Vikram

May 3 '07 #1
3 11526
On May 3, 4:57 pm, vikramp <vpu...@gmail.comwrote:
Hi,

I want to know how to setup the "Under Maintenance" page for the
website?

Here is the thing:

I have application setting in web.config called "MMode". I set it to
"Y" when I need to do site maintenance such as changes in the backend
database, etc.
Then inside aspx pages, I check if MMode is set to "Y" and if so, I
redirect to the custom under maintenance page.

This is all fine as long as website is running.
But now if the website is Stopped inside IIS itself, it will not
redirect to the under maintenance page since website is not running at
all.

So in such situation how do I notify users that the site is down for
maintenance by displaying custom page?

Thanks in advance.

Vikram
Why it has to be stopped?

May 3 '07 #2
On May 3, 2:59 pm, Alexey Smirnov <alexey.smir...@gmail.comwrote:
On May 3, 4:57 pm, vikramp <vpu...@gmail.comwrote:


Hi,
I want to know how to setup the "Under Maintenance" page for the
website?
Here is the thing:
I have application setting in web.config called "MMode". I set it to
"Y" when I need to do site maintenance such as changes in the backend
database, etc.
Then inside aspx pages, I check if MMode is set to "Y" and if so, I
redirect to the custom under maintenance page.
This is all fine as long as website is running.
But now if the website is Stopped inside IIS itself, it will not
redirect to the under maintenance page since website is not running at
all.
So in such situation how do I notify users that the site is down for
maintenance by displaying custom page?
Thanks in advance.
Vikram

Why it has to be stopped?- Hide quoted text -

- Show quoted text -
Well... it has not been stopped. It is working fine.
But it will be stopped periodically for maintenance and during this
time if any user tries to visit the site, it will just display default
IIS error page. I want to avoid that and display some custom error
page that says Site is under Maintenance.

Thanks.
May 4 '07 #3
On May 4, 5:15 pm, vikramp <vpu...@gmail.comwrote:
On May 3, 2:59 pm, Alexey Smirnov <alexey.smir...@gmail.comwrote:


On May 3, 4:57 pm, vikramp <vpu...@gmail.comwrote:
Hi,
I want to know how to setup the "Under Maintenance" page for the
website?
Here is the thing:
I have application setting in web.config called "MMode". I set it to
"Y" when I need to do site maintenance such as changes in the backend
database, etc.
Then inside aspx pages, I check if MMode is set to "Y" and if so, I
redirect to the custom under maintenance page.
This is all fine as long as website is running.
But now if the website is Stopped inside IIS itself, it will not
redirect to the under maintenance page since website is not running at
all.
So in such situation how do I notify users that the site is down for
maintenance by displaying custom page?
Thanks in advance.
Vikram
Why it has to be stopped?- Hide quoted text -
- Show quoted text -

Well... it has not been stopped. It is working fine.
But it will be stopped periodically for maintenance and during this
time if any user tries to visit the site, it will just display default
IIS error page. I want to avoid that and display some custom error
page that says Site is under Maintenance.

Thanks.- Hide quoted text -

- Show quoted text -
I think the only way is to have a second site with the same host
header.

May 4 '07 #4

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

Similar topics

9
13923
by: dm4714 | last post by:
Hello - we have an ecommerce application that needs to come down for maintenance. The application is normally only accessed via http://www.mydomain.com/virtualdir/aspfile.asp. I'm using W2K...
2
1502
by: Ralph Soons | last post by:
Hi all, I am looking for a correct way to setup my website layout. For instance: I would like to have a selection mechanism (like tree or something) on the left and the page data on the right. ...
2
1247
by: Bill | last post by:
Ok, so we have a server running Win 2003 Server, and IIS 6.0. We have successfully worked projects from this server using VS 1.1 on remote development machines. We want to get started using VS...
1
1080
by: sudhaoncyberworld | last post by:
Hi all I am using VS2005, How can I deploy the .Net Framework from my setup project? In the bootstrapper setup program we have below 3 options 1.Download prerequisites from the component...
1
1678
by: mkhmer | last post by:
Hello, I want to have my site able to alert User and then Disconnect all current user from accessing the pages for website maintenance purpose. If anyone have any idea of this aiming? ...
1
1353
by: Harvnet | last post by:
I am a newbie programmer, using lots of books and online resources. I need help to get my asp.net page to work because right now all I am getting is errors. The project is to have a drop down...
3
1912
by: =?Utf-8?B?WmlhbmdpIEpvbmVz?= | last post by:
Hi, I m using VS .NET 2003 to create a website. Using the setup package I create a setup as well. But this setup has files with actual code in it & not pre-compiled DLLs. Please let me know...
6
2962
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, We have two sites hosted on different servers and we have many pages on domain A which has many links(asp programs) to domain B. My question is if domain B server is in trouble, what is...
4
3350
by: Mike Gleason jr Couturier | last post by:
Hi, What's a clean way to redirect users on an information page while doing site maintenance... Can we do it with urlMappings !? (wildcard "*"?) Thanks
0
7321
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
7377
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
7488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5045
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.