473,320 Members | 1,949 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,320 software developers and data experts.

How can I shut down and restart (only one) ASP.NET 2.0 website on the server?

How can I shut down (only one) ASP.NET website on the server.

Problem. I have updated my web-site but the site which I see is the
old one (the one there prior to the update).

I do I force ASP.NET to use the code in the new site - including the
new global.asax settings. ?
I have set the HTTP headers to expire after 1 minute. I have put the
following line in web.config

<authentication mode="Forms">
<forms name="whateversite"
loginUrl="Default.aspx"
protection="Validation"
timeout="5"/>
</authentication>

I have tried stopping and starting IIS.
What do I do to force ASP.NET 2 to end all current sessions and begin
the application anew?

I really don't want to restart the server as there are other websites
running on it.

Jan 15 '07 #1
4 1202
Save either web.config or global.asax so it gets a newer timestamp.
That will automatically restart the application's AppDomain.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"mark4asp" <ma******@gmail.comwrote in message news:1d********************************@4ax.com...
How can I shut down (only one) ASP.NET website on the server.

Problem. I have updated my web-site but the site which I see is the
old one (the one there prior to the update).

I do I force ASP.NET to use the code in the new site - including the
new global.asax settings. ?
I have set the HTTP headers to expire after 1 minute. I have put the
following line in web.config

<authentication mode="Forms">
<forms name="whateversite"
loginUrl="Default.aspx"
protection="Validation"
timeout="5"/>
</authentication>

I have tried stopping and starting IIS.
What do I do to force ASP.NET 2 to end all current sessions and begin
the application anew?

I really don't want to restart the server as there are other websites
running on it.

Jan 15 '07 #2
Two strategies come to mind

1.) Delete the web.config file. Request a page to force the application to
fail. Use FTP to replace the old web.config file with the new web.config
file.

2.) Go into the Temporary ASP.NET Files directory where ASP.NET keeps its
compiled instance of the application and delete the instance which will be
reconstructed the next time the application is requested.

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=-...8&z=17&l=0&m=h
"mark4asp" <ma******@gmail.comwrote in message
news:1d********************************@4ax.com...
How can I shut down (only one) ASP.NET website on the server.

Problem. I have updated my web-site but the site which I see is the
old one (the one there prior to the update).

I do I force ASP.NET to use the code in the new site - including the
new global.asax settings. ?
I have set the HTTP headers to expire after 1 minute. I have put the
following line in web.config

<authentication mode="Forms">
<forms name="whateversite"
loginUrl="Default.aspx"
protection="Validation"
timeout="5"/>
</authentication>

I have tried stopping and starting IIS.
What do I do to force ASP.NET 2 to end all current sessions and begin
the application anew?

I really don't want to restart the server as there are other websites
running on it.

Jan 15 '07 #3
On Mon, 15 Jan 2007 10:30:07 -0600, "clintonG"
<cs*********@REMOVETHISTEXTmetromilwaukee.comwrote :
>Two strategies come to mind

1.) Delete the web.config file. Request a page to force the application to
fail. Use FTP to replace the old web.config file with the new web.config
file.

2.) Go into the Temporary ASP.NET Files directory where ASP.NET keeps its
compiled instance of the application and delete the instance which will be
reconstructed the next time the application is requested.

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files
Thanks, I just discovered that my problem is almost certainly that my
ISP (provider at work - not the host) is probably caching the pages.

I will include the following html in the hope that they stop caching.

<head>
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
</head>

I tried deleting web.config but it had no effect - the same old pages
were still there.

><%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=-...8&z=17&l=0&m=h
"mark4asp" <ma******@gmail.comwrote in message
news:1d********************************@4ax.com.. .
>How can I shut down (only one) ASP.NET website on the server.

Problem. I have updated my web-site but the site which I see is the
old one (the one there prior to the update).

I do I force ASP.NET to use the code in the new site - including the
new global.asax settings. ?
I have set the HTTP headers to expire after 1 minute. I have put the
following line in web.config

<authentication mode="Forms">
<forms name="whateversite"
loginUrl="Default.aspx"
protection="Validation"
timeout="5"/>
</authentication>

I have tried stopping and starting IIS.
What do I do to force ASP.NET 2 to end all current sessions and begin
the application anew?

I really don't want to restart the server as there are other websites
running on it.
Jan 15 '07 #4
Thanks, I just discovered that my problem is almost certainly that my
ISP (provider at work - not the host) is probably caching the pages.
A way to bypass that cache may be to add a dummy parameter with some
randowm value to the querystring
so instead of
mypage.aspx
use
mypage.aspx?somevar=864

The fact *that* you use a querystring might already be enough to bypass
a cache, else the "new URL" should do the trick.

Hans Kesting
Jan 16 '07 #5

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

Similar topics

4
by: Claire | last post by:
Running XP pro, SP2. Visual studio .NET 2003. App written in C# I have written an application that hides itself when run and shows a notification icon in the system tray. If the main form is...
2
by: Daniel | last post by:
Is there any way for System.IO.StreamWriter Write method to write out part of the string to file. such as if the machine is shut down half way through? or does the file not actually exist until the...
5
by: Bruce W.1 | last post by:
I know how to setup an ASP.NET project and website. But I'm not clear on how this is done with classic ASP. I've heard people say they need to shut down ASP before they can modify any of the...
3
by: John A Grandy | last post by:
In ASP.NET 1.1 and/or 2.0 ..... Is it possible to configure a web-app so that replacement of an .xml file ( physically located under the virtual dir root ) with a newer version of the file...
6
by: Deepa K | last post by:
Hi, I am using Postgresql 7.1.3. PgSQL server gets shut down once the hard disk space becomes full. Is thers any particular reason to shut down the server? Can any one help me on this. --...
4
by: pamelafluente | last post by:
Hi Guys, I have a small application which uses a NotifyIcon. The user can set a flag (PreventClosing ) so that when he clicks on the form-cancel button "X", the program will instead be...
8
by: Austen | last post by:
Hello i trying to shut down window using vb. i able to restart and log off, but was unable to shut down. when excute the shut down command , nothing happend. it related to window os security issue?
6
sashi
by: sashi | last post by:
Shut down Windows For various reasons you may require a shut down of Windows to happen programmatically. For instance if the installation of your program requires system reconfiguration. The...
3
by: TC | last post by:
Hey All, I have some classes that I recently built for a website which uses the HttpWebRequest & HttpWebResponse objects from the System.Net namespace. Basically, the classes rap submitted data...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.