473,398 Members | 2,393 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,398 software developers and data experts.

Take Application off line quickly

Suppose I need to make an ASP.NET Web application inaccessible to anyone
trying to open any of its pages. How can this be done quickly - and in a way
that allows me to bring the whole thing back online quickly?
Nov 18 '05 #1
5 1097
1) Shut down IIS - of course this will give them a page not found type of
error
2) You can configure a virtual directory in IIS to redirect to a given URL.
This URL can then inform the user that the site is down and to try again
later. This would probably be more user friendly.
"Guadala Harry" <GM**@NoSpam.com> wrote in message
news:uL**************@TK2MSFTNGP09.phx.gbl...
Suppose I need to make an ASP.NET Web application inaccessible to anyone
trying to open any of its pages. How can this be done quickly - and in a way that allows me to bring the whole thing back online quickly?

Nov 18 '05 #2
You could just stop the IIS site. You could also hanlde this in the app
itself if needed (especially if it could be interesting to "filter" those
who are allowed to log on when the app is in this particular state).

The overall goal may yield a better suggestion.

Patrice

--

"Guadala Harry" <GM**@NoSpam.com> a écrit dans le message de
news:uL**************@TK2MSFTNGP09.phx.gbl...
Suppose I need to make an ASP.NET Web application inaccessible to anyone
trying to open any of its pages. How can this be done quickly - and in a way that allows me to bring the whole thing back online quickly?

Nov 18 '05 #3
Yes - the overall goal (small detail!): Here it is: I have to periodically
bring a site down for maintenance (anywhere from 2 minutes to 2 hours;
install upgaded assemblies, updated aspx files, modify database etc); during
which period I don't want anyone to come in - and after which I want to
allow everyone back in of course. I don't mind killing existing sessions
(could easily pick a time of day to minimize such occurances in this
low-volume application). It would be great if the user could see some
informative message when they attempt to open any page in the site - rather
than some error that drives them to call tech support.

Thanks!

-GH
"Patrice" <no****@nowhere.com> wrote in message
news:uA**************@TK2MSFTNGP14.phx.gbl...
You could just stop the IIS site. You could also hanlde this in the app
itself if needed (especially if it could be interesting to "filter" those
who are allowed to log on when the app is in this particular state).

The overall goal may yield a better suggestion.

Patrice

--

"Guadala Harry" <GM**@NoSpam.com> a écrit dans le message de
news:uL**************@TK2MSFTNGP09.phx.gbl...
Suppose I need to make an ASP.NET Web application inaccessible to anyone
trying to open any of its pages. How can this be done quickly - and in a

way
that allows me to bring the whole thing back online quickly?


Nov 18 '05 #4
Ok so you have the options :
- virtual dir as suggested by Marina
- adding this into the app will allow some accounts to connect so that you
can check that it works before bringing things online again.

As a side note, I believe to have read that ASP.NET actually caches the DLLs
(including ASPX code behind) so that you can update DLLs and pages "on the
fly". You could ask this in a separate thread. For the database, you could
prepare a script.

Though I admit we have no high volume (vertical applications) and that users
are generally located in the same country (allowing to update during lunch
or after the day work), IMO you could look also if you can shorten the time
it takes to perform this update and in some cases it could be even almost
useless to "close" the site.

As an additonal note, you may want also to display a "message of the day"
*before* the update so that they know the site *will* be updated while they
work. Bascially I would see :
- Schelded date for the next update and expected duratino (few days before)
- a warning message or blocking the site during the update (tyhat should be
IMO almost "automated" ie blocking or anbeling the warning, copying prepared
files to update DLLs and pages, running a script)
- you do the final check by hand and can correct what unexpectedly goes
wrong
- when all is ok, you manually enable the site again

Patrice

--

"Guadala Harry" <GM**@NoSpam.com> a écrit dans le message de
news:Ob*************@tk2msftngp13.phx.gbl...
Yes - the overall goal (small detail!): Here it is: I have to periodically bring a site down for maintenance (anywhere from 2 minutes to 2 hours;
install upgaded assemblies, updated aspx files, modify database etc); during which period I don't want anyone to come in - and after which I want to
allow everyone back in of course. I don't mind killing existing sessions
(could easily pick a time of day to minimize such occurances in this
low-volume application). It would be great if the user could see some
informative message when they attempt to open any page in the site - rather than some error that drives them to call tech support.

Thanks!

-GH
"Patrice" <no****@nowhere.com> wrote in message
news:uA**************@TK2MSFTNGP14.phx.gbl...
You could just stop the IIS site. You could also hanlde this in the app
itself if needed (especially if it could be interesting to "filter" those who are allowed to log on when the app is in this particular state).

The overall goal may yield a better suggestion.

Patrice

--

"Guadala Harry" <GM**@NoSpam.com> a écrit dans le message de
news:uL**************@TK2MSFTNGP09.phx.gbl...
Suppose I need to make an ASP.NET Web application inaccessible to anyone trying to open any of its pages. How can this be done quickly - and in
a way
that allows me to bring the whole thing back online quickly?



Nov 18 '05 #5
Thanks!

"Patrice" <no****@nowhere.com> wrote in message
news:eL**************@TK2MSFTNGP11.phx.gbl...
Ok so you have the options :
- virtual dir as suggested by Marina
- adding this into the app will allow some accounts to connect so that you
can check that it works before bringing things online again.

As a side note, I believe to have read that ASP.NET actually caches the DLLs (including ASPX code behind) so that you can update DLLs and pages "on the
fly". You could ask this in a separate thread. For the database, you could
prepare a script.

Though I admit we have no high volume (vertical applications) and that users are generally located in the same country (allowing to update during lunch
or after the day work), IMO you could look also if you can shorten the time it takes to perform this update and in some cases it could be even almost
useless to "close" the site.

As an additonal note, you may want also to display a "message of the day"
*before* the update so that they know the site *will* be updated while they work. Bascially I would see :
- Schelded date for the next update and expected duratino (few days before) - a warning message or blocking the site during the update (tyhat should be IMO almost "automated" ie blocking or anbeling the warning, copying prepared files to update DLLs and pages, running a script)
- you do the final check by hand and can correct what unexpectedly goes
wrong
- when all is ok, you manually enable the site again

Patrice

--

"Guadala Harry" <GM**@NoSpam.com> a écrit dans le message de
news:Ob*************@tk2msftngp13.phx.gbl...
Yes - the overall goal (small detail!): Here it is: I have to periodically
bring a site down for maintenance (anywhere from 2 minutes to 2 hours;
install upgaded assemblies, updated aspx files, modify database etc);

during
which period I don't want anyone to come in - and after which I want to
allow everyone back in of course. I don't mind killing existing sessions
(could easily pick a time of day to minimize such occurances in this
low-volume application). It would be great if the user could see some
informative message when they attempt to open any page in the site -

rather
than some error that drives them to call tech support.

Thanks!

-GH
"Patrice" <no****@nowhere.com> wrote in message
news:uA**************@TK2MSFTNGP14.phx.gbl...
You could just stop the IIS site. You could also hanlde this in the app itself if needed (especially if it could be interesting to "filter" those who are allowed to log on when the app is in this particular state).

The overall goal may yield a better suggestion.

Patrice

--

"Guadala Harry" <GM**@NoSpam.com> a écrit dans le message de
news:uL**************@TK2MSFTNGP09.phx.gbl...
> Suppose I need to make an ASP.NET Web application inaccessible to anyone > trying to open any of its pages. How can this be done quickly - and
in a way
> that allows me to bring the whole thing back online quickly?
>
>



Nov 18 '05 #6

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

Similar topics

1
by: Guinness Mann | last post by:
Pardon me if this is not the optimum newsgroup for this post, but it's the only .NET newsgroup I read and I'm certain someone here can help me. I have a C# program that checks for an error...
4
by: Keith Chadwick | last post by:
I am having some trouble referencing an Application("myVar") variable from within a module.vb file on my ASP.NET site. According to the documentation I should be able to reference...
3
by: Jeff Smythe | last post by:
I simply want to execute some code once when a new session of my ASP.NET application is started (I'm not using session state for anything else - just writing some data to a database). I thought...
9
by: andy lim | last post by:
hello all, i developed several ASP.NET web application with VS2003. i'm preparing myself to take an exam on the path to MCAD.NET. then, the VS2005/.NET framework 2.0 (beta) came in to my hand....
3
by: AllenL | last post by:
After nearly two years using VB.NET, I'm now working for a company that has a very large commercial ASP/COM+ application (1 million+ lines of VB6 code, 350+ objects in the COM+ catalog, 2300+...
12
by: neodem | last post by:
PHP, and to a lesser degree JSF has become very popular ways to build web applications. What I don't understand, and what I would like you all to comment on, is how these methods are the best way...
11
by: Tempo | last post by:
Hello. I am getting the error that is displayed below, and I know exactly why it occurs. I posted some of my program's code below, and if you look at it you will see that the error terminates the...
4
by: Martin | last post by:
Hi everyone ! For those who haven't read my previous post, I have a problem with a UserControl. When I try to display it on a form, controls seem to appear one after one. In the following...
6
by: JDeats | last post by:
I'm in a situation where it's difficult to get on-site and troubleshoot, so I'm looking for scenarios from those experienced on what might be causing this problem. I have a .NET 2.0 WinForms...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.