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

Need to restart WWW services?

LL
Hi,

I use Applicaiton lever variable like this: Application["MyVal"] = xxx;

Do I need to restart the WWW service every time to reset it?

I also have several Session variables. When Session_End event fire, all of
them are null, right?

Thanks.
Nov 17 '05 #1
5 1621
> I use Applicaiton lever variable like this: Application["MyVal"] = xxx;

Do I need to restart the WWW service every time to reset it?
Depends. On Windows Server 2003, using IIS 6, you can simply recycle the
Application Pool in which that app runs. Otherwise, yes.
I also have several Session variables. When Session_End event fire, all of
them are null, right?
Before, during, or after? After Session_End fires, they are all moot. The
Session doesn't exist any more.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"LL" <li*******@hotmail.com> wrote in message
news:O2**************@TK2MSFTNGP11.phx.gbl... Hi,

I use Applicaiton lever variable like this: Application["MyVal"] = xxx;

Do I need to restart the WWW service every time to reset it?

I also have several Session variables. When Session_End event fire, all of
them are null, right?

Thanks.

Nov 17 '05 #2

I don't think that's correct.

Changes to the application object are immediately visible to everyone. That
object is threaded in such a way that all changes are "single-file"

For that reason, you don't want to alter that object too often, as it can
kill your performance
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uX**************@TK2MSFTNGP12.phx.gbl...
I use Applicaiton lever variable like this: Application["MyVal"] = xxx;

Do I need to restart the WWW service every time to reset it?


Depends. On Windows Server 2003, using IIS 6, you can simply recycle the
Application Pool in which that app runs. Otherwise, yes.
I also have several Session variables. When Session_End event fire, all of them are null, right?


Before, during, or after? After Session_End fires, they are all moot. The
Session doesn't exist any more.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"LL" <li*******@hotmail.com> wrote in message
news:O2**************@TK2MSFTNGP11.phx.gbl...
Hi,

I use Applicaiton lever variable like this: Application["MyVal"] = xxx;

Do I need to restart the WWW service every time to reset it?

I also have several Session variables. When Session_End event fire, all of them are null, right?

Thanks.


Nov 17 '05 #3
LL
Other way to reset the application lever variables?
I have a 4 CPU server. I found after I restart the WWW service, the
variables are still being cached.

Thanks for the help.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uX**************@TK2MSFTNGP12.phx.gbl...
I use Applicaiton lever variable like this: Application["MyVal"] = xxx;

Do I need to restart the WWW service every time to reset it?


Depends. On Windows Server 2003, using IIS 6, you can simply recycle the
Application Pool in which that app runs. Otherwise, yes.
I also have several Session variables. When Session_End event fire, all of them are null, right?


Before, during, or after? After Session_End fires, they are all moot. The
Session doesn't exist any more.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"LL" <li*******@hotmail.com> wrote in message
news:O2**************@TK2MSFTNGP11.phx.gbl...
Hi,

I use Applicaiton lever variable like this: Application["MyVal"] = xxx;

Do I need to restart the WWW service every time to reset it?

I also have several Session variables. When Session_End event fire, all of them are null, right?

Thanks.


Nov 17 '05 #4
You can manipulate Application-level variables as well as other
memory-resident data in your code, without having to restart anything. I'm
not sure what you're getting at.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"LL" <li*******@hotmail.com> wrote in message
news:eB**************@tk2msftngp13.phx.gbl...
Other way to reset the application lever variables?
I have a 4 CPU server. I found after I restart the WWW service, the
variables are still being cached.

Thanks for the help.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uX**************@TK2MSFTNGP12.phx.gbl...
I use Applicaiton lever variable like this: Application["MyVal"] = xxx;
Do I need to restart the WWW service every time to reset it?
Depends. On Windows Server 2003, using IIS 6, you can simply recycle the
Application Pool in which that app runs. Otherwise, yes.
I also have several Session variables. When Session_End event fire, all of
them are null, right?
Before, during, or after? After Session_End fires, they are all moot. The
Session doesn't exist any more.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"LL" <li*******@hotmail.com> wrote in message
news:O2**************@TK2MSFTNGP11.phx.gbl...
Hi,

I use Applicaiton lever variable like this: Application["MyVal"] =

xxx;
Do I need to restart the WWW service every time to reset it?

I also have several Session variables. When Session_End event fire,

all of them are null, right?

Thanks.



Nov 17 '05 #5
> I don't think that's correct.

Changes to the application object are immediately visible to everyone. That object is threaded in such a way that all changes are "single-file"
Yeah, I think I mis-read his question. Whether or not he needs to restart
his app depends on a number of factors, but if he programmatically sets an
Application-level variable, it is of course changed right away, with no need
to restart the app. On the other hand, if, for example, the
Application_OnStart Event Handler loads data from a database into the Cache,
it would need to be restarted to get the fresh data.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Boban Dragojlovic" <news@_N_O_S_P_AM_dragojlovic.org> wrote in message
news:zY***************@newssvr14.news.prodigy.com. ..
I don't think that's correct.

Changes to the application object are immediately visible to everyone. That object is threaded in such a way that all changes are "single-file"

For that reason, you don't want to alter that object too often, as it can
kill your performance
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uX**************@TK2MSFTNGP12.phx.gbl...
I use Applicaiton lever variable like this: Application["MyVal"] = xxx;
Do I need to restart the WWW service every time to reset it?
Depends. On Windows Server 2003, using IIS 6, you can simply recycle the
Application Pool in which that app runs. Otherwise, yes.
I also have several Session variables. When Session_End event fire, all of
them are null, right?
Before, during, or after? After Session_End fires, they are all moot. The
Session doesn't exist any more.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"LL" <li*******@hotmail.com> wrote in message
news:O2**************@TK2MSFTNGP11.phx.gbl...
Hi,

I use Applicaiton lever variable like this: Application["MyVal"] =

xxx;
Do I need to restart the WWW service every time to reset it?

I also have several Session variables. When Session_End event fire,

all of them are null, right?

Thanks.



Nov 17 '05 #6

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

Similar topics

11
by: dcinfinite | last post by:
Hi.. i've posted heaps previously about my IIS not running..i've resorted in formatting my computer..and now the IIS is working..but i have another issue now..is so frustrating.. now..when i...
4
by: Wendy Elizabeth | last post by:
I am working with 2 com object dlls that are located in WINNT/SYSTEM32 directory. When I need to make changes to the DLLs, I need to do the following: 1. stop IIS 2. unregister and register the 2...
0
by: felecha | last post by:
Is there a way to write a Service so that it will fail? I'm working on a Service written in VB.Net, that supports an application we are building, and I want to make sure that it can restart...
6
by: Leonardo Curros | last post by:
Hello, I would like to know what's the best way to restart one service. I would like to do it from the service itself. Is this possible? I try it with ServiceController.stop()...
3
by: Matt | last post by:
Is there an 'easy' way to have a service stop and restart itself? I currently have a seperate service running who's job is to watch the other service and restart it if there is a problem... can I...
0
by: Nelson KH Cheng | last post by:
Hi This is the first time I'm really delving into Web Services, and I seem to be getting this strange issue. I have a Windows App .NET project which makes calls to a Web Service Project, and I...
6
by: Vic.Dong | last post by:
Hello. all: I want to inject a DLL of my custome hook dll to system serice SERVICES.EXE application as every OS restart? B.R. VIC
0
by: Stu | last post by:
I x-posted this in the enhancements group as well, looking for some help: Need help with a CAS issue with WSE3. Enable an asp.net2 webapp to use WSE3. Create a new webservice in the app via...
3
by: Milagro | last post by:
Hello Everyone, I'm trying to debug someone elses php code. I'm actually a Perl programmer, with OO experience, but not in php. The code is supposed to upload a photo from a form and save it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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,...
0
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...

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.