473,473 Members | 4,176 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to restart application

ad
I want to renew all values of Application and Session.
How can I restart application in program?
Nov 19 '05 #1
3 2765
How about something like Application.Clear() and Session.Clear().

You probably do not want the code to be able to restart itself, but if you
are desperate, you could also spawn a process to the "iisreset" command.
"ad" <fl****@wfes.tcc.edu.tw> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
I want to renew all values of Application and Session.
How can I restart application in program?

Nov 19 '05 #2
ad
Thanks,

After execute Application.Clear(), and Session.Clare() can I execute the
code in Global.asax's Application_Start and Session_Start event?

"Peter Rilling" <pe***@nospam.rilling.net> ¼¶¼g©ó¶l¥ó·s»D:e8****************@TK2MSFTNGP10.phx .gbl...
How about something like Application.Clear() and Session.Clear().

You probably do not want the code to be able to restart itself, but if you
are desperate, you could also spawn a process to the "iisreset" command.
"ad" <fl****@wfes.tcc.edu.tw> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
I want to renew all values of Application and Session.
How can I restart application in program?


Nov 19 '05 #3
Those will just clear the variables, not restart the app or session. I do
not think you can (or should) programmatically restart the app. You could
all Session.Abandon() to restart the session.

If there is some code that you want to run after you reset the variables and
when the app/session starts, I would suggest creating some function that
both places can call.

"ad" <fl****@wfes.tcc.edu.tw> wrote in message
news:Oq**************@TK2MSFTNGP12.phx.gbl...
Thanks,

After execute Application.Clear(), and Session.Clare() can I execute the
code in Global.asax's Application_Start and Session_Start event?

"Peter Rilling" <pe***@nospam.rilling.net>
¼¶¼g©ó¶l¥ó·s»D:e8****************@TK2MSFTNGP10.phx .gbl...
How about something like Application.Clear() and Session.Clear().

You probably do not want the code to be able to restart itself, but if
you are desperate, you could also spawn a process to the "iisreset"
command.
"ad" <fl****@wfes.tcc.edu.tw> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
I want to renew all values of Application and Session.
How can I restart application in program?



Nov 19 '05 #4

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

Similar topics

1
by: localhost | last post by:
In the Application_OnStart, I make some data calls and place the results in the HTTP cache. Sometimes, the database is not available when the application starts up, so I want to sleep for 20...
3
by: Jiong Feng | last post by:
Hi, I have a question. WE have a web application in web root. And also we have a virtual directory library application. If we change root web.config, the root application will restart....
18
by: amdishigh | last post by:
We are experiencing the following problems concerning ASP.NET: our ASP.NET application, written in .NET 1.1 platform, and hosted in IIS 5.0 environment, experience frequent session timeout problem....
3
by: Pint | last post by:
I would like to know if there is a programatic way to force the Application object to restart. I have a hosted website where I will be unable to control the webserver (eg:iisreset), and I would...
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...
8
by: kenneth fleckenstein nielsen | last post by:
hi guru's I want to restart my webservice when ever it throws an exception that isn't cought. can i do that by web.config or iss or how ??
3
by: MarkusJNZ | last post by:
Hi, I have two different applications running on 2003 both in two different vitrual directories. One application runs on the .NET framework 1.1 whilst the other runs on 2.0. If I change the...
1
by: Brian Simmons | last post by:
Hi All, I know that if you modify the web.config file or any file in the App_Code subfolder, that ASP.net 2.0 will "restart" the application (i.e. clear out any sessions, etc...). Are there...
8
by: =?Utf-8?B?TWlrZVo=?= | last post by:
How Can Windows Service Application Reatarts itself? Thanks.
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
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...
1
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...
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...
0
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
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.