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

web config asp,net applications and web services.

Hi.

Can somebody tell me if changes made to the web.config file of a running
asp.net web application cause the application to be re-started.

The specific change I had in made was a change to the <trace> element of the
web.config file.

I am under the impression that this does re-start the asp.net web
application.
also would an identical change the the web.config file of an asp.net web
service cause the web service to be re-started???
thank you for your time..

cheers

martin

Nov 18 '05 #1
5 1064
Hi Martin,

ANY change to web.config causes the app to be restarted which affects both
Web Forms and Web Services.

Generally this should not be a problem, unless you're keeping some sort of
state on the server. If you're worried about Session objects you might try
StateServer for more persistent state storage.

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web
"Martin" <ma****@hotmail.com> wrote in message
news:ew**************@tk2msftngp13.phx.gbl...
Hi.

Can somebody tell me if changes made to the web.config file of a running
asp.net web application cause the application to be re-started.

The specific change I had in made was a change to the <trace> element of the web.config file.

I am under the impression that this does re-start the asp.net web
application.
also would an identical change the the web.config file of an asp.net web
service cause the web service to be re-started???
thank you for your time..

cheers

martin

Nov 18 '05 #2
Rick,

Thanks a lot for the answer..

cheers

martin.

"Rick Strahl [MVP]" <ri********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi Martin,

ANY change to web.config causes the app to be restarted which affects both
Web Forms and Web Services.

Generally this should not be a problem, unless you're keeping some sort of
state on the server. If you're worried about Session objects you might try
StateServer for more persistent state storage.

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web
"Martin" <ma****@hotmail.com> wrote in message
news:ew**************@tk2msftngp13.phx.gbl...
Hi.

Can somebody tell me if changes made to the web.config file of a running asp.net web application cause the application to be re-started.

The specific change I had in made was a change to the <trace> element of

the
web.config file.

I am under the impression that this does re-start the asp.net web
application.
also would an identical change the the web.config file of an asp.net web
service cause the web service to be re-started???
thank you for your time..

cheers

martin


Nov 18 '05 #3


if you do any change to the web.config then the corresponding
application will immediately load the web.config file, but do not
restart.

the asp.net framework cashes all the settings of this file and
automatically detects and loads the settings when some modifications are
made to it, hense again takes them to the cache.
regads
raheel

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #4
Raheel,

This is not correct. A change to web.config causes the AppDomain of the
running application to be unloaded and a new AppDomain to be loaded with
ASP.Net runtime in it. Note that it's the AppDomain that the runtime is
hosted in (one for each virtual directory) that gets restarted not the
process.

The old AppDomain finishes running out requests while a new one is started
up to capture all new incoming requests so there may be two simultaneous
instances of the same application running for a short period of time.

+++ Rick ---
--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web
"Raheel Hussain" <ra*******@yahoo.com> wrote in message
news:u$**************@tk2msftngp13.phx.gbl...


if you do any change to the web.config then the corresponding
application will immediately load the web.config file, but do not
restart.

the asp.net framework cashes all the settings of this file and
automatically detects and loads the settings when some modifications are
made to it, hense again takes them to the cache.
regads
raheel

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #5
Dear Rick.

Yes, infact you are right.

thx for the correction.

raheel.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #6

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

Similar topics

9
by: Benny Ng | last post by:
Hi,all, How to let the sub-directory to avoid the authentication control from Root's webconfig? I heard that we can add a new web.config to the sub-directory. And then we can slove the problem....
6
by: theWizard1 | last post by:
Using VisualStudio 2005, asp.net 2.0: What do I put in my Web.Config to avoid hard coding the: myserveraddress.com? The following shows how I have hard coded it without having the value in the...
9
by: Dick | last post by:
Visual Studio saves lots of values in the project's app.config file (connection strings for datasets, My.settings, etc.), but as far as I can see, if the project is in the middle teir, these values...
12
by: Ben | last post by:
I have a group of settings that I'd like to have inherited by multiple sites. I'm trying this, but it's not working. wwwroot\group\web.config wwwroot\group\site1\web.config...
1
by: herbert | last post by:
In VS.2005 a Windows Service can have an app.config file. A class library can also have an app.config file. Now if my Windows Services uses three class libraries, each of it coming with its own...
2
by: ken | last post by:
We have a user that has reported the following error when starting up our client application that uses a web service on our back end: System.Configuration.ConfigurationException: Missing required...
8
by: =?Utf-8?B?Y2FsZGVyYXJh?= | last post by:
Dear all, I am building a set of libraries working in a n tiers architecture Some of those libraries use common configuration settings like the database connection string and some others. I...
14
by: Naraendirakumar R.R. | last post by:
I have a client in the healthcare industry who would prefer to store the connection string in a centralized location in their Active Directory repository. Has anybody done this? What has your...
1
by: =?Utf-8?B?QnJhZA==?= | last post by:
Generally on a Windows system the services file (located in Windows\System32\Drviers\Etc\Services) would specify port allocation to different applications. It contains registered ports and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...

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.