473,499 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change to web.config and restarting application.

zb
I am not convinced and need your opinion.

My understanding is that if bin directory's content is changed then the
ASP.Net application recycles (Applicatin is restarted). Is it also true
for the web.config file.

When Application is restarted all sessions are cleared. Now, if the
application is running and a change is made in web.config file if this
triggers application restart it will clear all sessions?
If this does not recycle the application what if the change is to
System.Web section of teh configuration or some other area including
appSetting?

Thanks in advance.

Jan 4 '07 #1
7 2178
It does trigger the application restart and clear all sessions.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"zb" <ze****@gmail.comwrote in message
news:11**********************@s34g2000cwa.googlegr oups.com...
>I am not convinced and need your opinion.

My understanding is that if bin directory's content is changed then the
ASP.Net application recycles (Applicatin is restarted). Is it also true
for the web.config file.

When Application is restarted all sessions are cleared. Now, if the
application is running and a change is made in web.config file if this
triggers application restart it will clear all sessions?
If this does not recycle the application what if the change is to
System.Web section of teh configuration or some other area including
appSetting?

Thanks in advance.

Jan 4 '07 #2
Hi,

zb wrote:
I am not convinced and need your opinion.

My understanding is that if bin directory's content is changed then the
ASP.Net application recycles (Applicatin is restarted).
AFAIK, this is only true in the website model. If you use the Web
Application Project add-on (or the one which is integrated in VS2005
SP1), this shouldn't be the case.
Is it also true
for the web.config file.
That's correct, always.

When Application is restarted all sessions are cleared. Now, if the
application is running and a change is made in web.config file if this
triggers application restart it will clear all sessions?
Yes, that's correct. If you have scenarios where the web.config is
modified "live", then you must be extra careful when using the Session
state.
If this does not recycle the application what if the change is to
System.Web section of teh configuration or some other area including
appSetting?

Thanks in advance.
HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Jan 4 '07 #3
I am not convinced and need your opinion.
>
My understanding is that if bin directory's content is changed then the
ASP.Net application recycles (Applicatin is restarted). Is it also true
for the web.config file.

When Application is restarted all sessions are cleared. Now, if the
application is running and a change is made in web.config file if this
triggers application restart it will clear all sessions?

If this does not recycle the application what if the change is to
System.Web section of teh configuration or some other area including
appSetting?

Thanks in advance.
A change in directory structure (add/remove/rename a subdirectory) will
also trigger a recycle.

Hans Kesting
Jan 4 '07 #4

This is only true for in-process sessions. If you store session data
out of process or in sql server, then the sessions are not lost on app
restart.

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking Mid/Sr. .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.
On 4 Jan 2007 01:12:54 -0800, "zb" <ze****@gmail.comwrote:
>I am not convinced and need your opinion.

My understanding is that if bin directory's content is changed then the
ASP.Net application recycles (Applicatin is restarted). Is it also true
for the web.config file.

When Application is restarted all sessions are cleared. Now, if the
application is running and a change is made in web.config file if this
triggers application restart it will clear all sessions?
If this does not recycle the application what if the change is to
System.Web section of teh configuration or some other area including
appSetting?

Thanks in advance.
Jan 4 '07 #5
zb
Thank you all for your pronto response. Now I am convinced. :)

Jan 5 '07 #6
zb
This is just a confirmation.

If the log location for the application is within the virtual directory
that means every time the file is written ASP.Net is going to recycle
even though the log file extension could be .txt or .log?

Thanks again.

Jan 10 '07 #7
zb
So, if the log location for the application is within the virtual
directory
that means every time the file is written ASP.Net is going to recycle
even though the log file extension could be .txt or .log?
Thanks again.

Jan 11 '07 #8

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

Similar topics

3
1747
by: david | last post by:
I found my web.config file always in lock mode, when I tried to modify it, I ofter got "Can not create web.config" error. I had to reboot my machine, and before I accessed any site I can modify it....
2
4870
by: Scanner2001 | last post by:
I have a service with settings in the app.config file. I would like to be able to change these settings without restarting the service. Something similar to a web.config with web services. Whenever...
8
2328
by: vadim | last post by:
Hi, Is there a .Net control available that allows to write into web.config file appsettings section? The idea is to create encrypted user name and password for database connection and then...
5
2909
by: who be dat? | last post by:
Hello all. I'm writing an application that is writing trace information that can be viewed in trace.axd. I would like to rename this and use a different name specific to my application. I know...
2
2638
by: Anna | last post by:
I added a small Web.Config file to the root of my website so that I could view errors on a machine other than the server: <configuration> <system.web> <customErrors mode="Off" /> </system.web>...
1
1018
by: Pietro | last post by:
I've created another .config file (site.config) to avoid restarting when web.config is changed, but changes in this new .config file only take effect when the application restarts. I would like to...
2
2211
by: Pieter | last post by:
Hi, I'm using the Settings.settings of VB.NET to define a Connectionstring (Scope = application). When I deploy the Solution, and change this Setting in the app.config-file, it seems that...
3
6018
by: wizofaus | last post by:
I've now created the same setup on four different machines, where I'm changing the processModel section machine.config so that ASP.NET (1.1) runs as SYSTEM, to give it permission to do various...
4
1909
by: Andy | last post by:
If I open, edit and save the web.config file directly on the webserver, the web server becomes unavailable. When I reset IIS, I get the 'Server Application Unavailable' message appear for that...
0
7132
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
7178
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
7223
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
6899
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
7390
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
5475
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
4919
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
1427
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 ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.