473,834 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

prevent aspnet process to restart after web.config is changed

Hi, is the a way to prevent aspnet process to restart after web.config is
modified?
like, waiting for all sessions to close, or not restart at all ?

Thank you,
Daniel
Nov 18 '05 #1
5 1809
Hi Daniel:

I don't believe so.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 28 Oct 2004 13:36:00 +0200, "Daniel" <bbb> wrote:
Hi, is the a way to prevent aspnet process to restart after web.config is
modified?
like, waiting for all sessions to close, or not restart at all ?

Thank you,
Daniel


Nov 18 '05 #2
Ms should learn from Apache...

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:k4******** *************** *********@4ax.c om...
Hi Daniel:

I don't believe so.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 28 Oct 2004 13:36:00 +0200, "Daniel" <bbb> wrote:
Hi, is the a way to prevent aspnet process to restart after web.config is
modified?
like, waiting for all sessions to close, or not restart at all ?

Thank you,
Daniel

Nov 18 '05 #3
> Ms should learn from Apache...

Yeah, if MS could learn from Apache, they might end up the richest software
company in the world. Oh, wait a second.... they already ARE the richest
software company in the world.

Maybe Apache could learn something from Microsoft?

As for the question, the answer is, a programming platform is designed to be
used a certain way. The way ASP.Net is designed, a change to the web.config
file restarts the application. That is the way it should be used. IOW,
rather than hacking the platform, work with it the way it was designed to be
worked with. This goes for ANY programming platform. If you don't like it,
learn C, and write your own platform. ;-)

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Daniel" <bbb> wrote in message
news:Oz******** ******@TK2MSFTN GP11.phx.gbl...
Ms should learn from Apache...

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:k4******** *************** *********@4ax.c om...
Hi Daniel:

I don't believe so.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 28 Oct 2004 13:36:00 +0200, "Daniel" <bbb> wrote:
Hi, is the a way to prevent aspnet process to restart after web.config ismodified?
like, waiting for all sessions to close, or not restart at all ?

Thank you,
Daniel


Nov 18 '05 #4
Daniel -

You can reference another file for your appSettings, and changes to
that file won't cause the app to restart.

Quote from Paul Wilson's post:
http://weblogs.asp.net/pwilson/archi...4/09/5261.aspx

Web.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<appSettings file="YourSetti ngs.config">
<add key="KeyToOverr ide" value="Original " />
<add key="KeyToNotOv erride" value="Standard " />
</appSettings>
<system.web>
<!-- standard web settings go here -->
</system.web>
</configuration>

YourSettings.co nfig:
<appSettings>
<add key="KeyToOverr ide" value="Overridd en" />
<add key="KeyToBeAdd ed" value="Entirely New" />
</appSettings>

An added benefit is that you can have a dev.config, qa.config,
staging.config, prod.config, etc. Then your web.config holds your
config info that doesn't change between environments, and you can
easily version your environment specific config files.

The one trick there is that updates to the referenced config files
don't restart the app, so the config changes aren't picked up. You can
manually edit the web.config file or use my stupid "Touch" hack:
http://weblogs.asp.net/jgalloway/arc.../20/76866.aspx

You can roll your own configuration file and reader if you'd like to
have your changes picked up on the fly without restarting the aspnet
wp, but of course it would only be useful for your own custom
appSettings type info.

MSDN info:
http://msdn.microsoft.com/library/de...ngsElement.asp
- Jon
http://weblogs.asp.net/jgalloway

Nov 18 '05 #5
If you are going to change only appsettings, then you can prevent aspnet
process to restart after .config file is changed. There is a option to
reference external config file in appsettings tag. In that custom config
file, you can have your appsettings. If you change that file it wont restart
the application. But this value will be picked when you restart your
application. For more details about this external config file check out this
blog,

http://dotnetjunkies.com/WebLog/sara.../28/30340.aspx

--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"Daniel" <bbb> wrote in message
news:Ou******** ******@TK2MSFTN GP10.phx.gbl...
Hi, is the a way to prevent aspnet process to restart after web.config is
modified?
like, waiting for all sessions to close, or not restart at all ?

Thank you,
Daniel

Nov 18 '05 #6

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

Similar topics

9
3300
by: Matt Calhoon | last post by:
Hi there, I have specified a aspnet user account to run all .net sites. This account needs access to start a .BAT File (in my global.asax on session start the app needs to execute this bat file). I have given the aspnet user Read and execute but the .bat will still not start. What specific permissions does this user need for other folders to start a ..bat file? Does the user need access to the WINNT\System32 directory or the...
1
1666
by: Aviad C | last post by:
Hello I created a web service that runs a new process whice is a vbscript. It all works well, i can see the wscript.exe running in the Task Manager under the user ASPNET but nothing happened. I did a little test, wrote a vbs that creats a folder but still nothing happened. it runs in the background doing nothing. no error, no exception. I changed the Web.config to use impersonate="true". after that even added the local Administrator to...
4
1860
by: Dean R. Henderson | last post by:
Hi, I am getting HTTP/1.1 500 Internal Server Errors when I try to create a new ASP.NET Web Service or ASP.NET Web Application. I have been able to create these in the past and my previous ones can still be opened, so I suspect I have done something to mess up my security configuration or settings. I am using Visual Studio 2003 on a Windows 2000 Server running IIS 5. Thanks for any help to resolve this problem.
3
4919
by: Damian | last post by:
Hi everyone I'm having an issue with one of our applications. I'm getting the following error when attempting to log in to the site: Server Error in 'xxxxxxxxxxxxxxxx' Application. -------------------------------------------------------------------------------- Runtime Error Description: An application error occurred on the server. The current
5
3115
by: Dave Kolb | last post by:
Is there any other solution for an ASPNET application to access network resources other than running as SYSTEM, using delegation (a nightmare to get to work) or the COM+ solution? I cannot seem to impersonate a user and obtain network credentials using the DuplicateTokenEx call with appropriate parameters even though the call seems to not fail. I check my identity has changed but can only still do local commands. I would consider...
9
2299
by: Daniel Walzenbach | last post by:
Hi I am faced with the following problem: I have a page (let’s call this page page1.aspx) containing some TextBoxes and a hyperlink which opens another page (let’s call this page page2.aspx) as a popup using either window.open or window.showModalDialog. Since I want to warn the users of my application when they try to close page1.aspx and have changed the values in the meantime I thought about using the “onbeforeunload” event of the...
2
1558
by: Yogesh Pancholi | last post by:
For some unexplained reason, I am suddenly unable to browse to a virtual directory on my laptop. I have a number of sample websites to which I could happliy browse up until last week. As of Monday, if I browse to any of the sites, I get an HttpException saying "The directory does not exist or is not accessible because of security settings." I honestly have not changed anything at all. I have checked and re-checked that ASPNET indeed has...
0
1788
by: Yogesh Pancholi | last post by:
For some unexplained reason, I am suddenly unable to browse to a virtual directory on my laptop. I have a number of sample websites to which I could happliy browse up until last week. As of Monday, if I browse to any of the sites, I get an HttpException saying "The directory does not exist or is not accessible because of security settings." I honestly have not changed anything at all. I have checked and re-checked that ASPNET indeed has...
3
3218
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 causes a web-app restart ... ? Also, is a stopping and starting a website in IIS the only way to restart a web-app ? (Of course, iisreset stops and starts all web-apps on the web-server ... but
0
9649
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10799
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10515
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10554
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10224
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9338
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7761
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6960
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5799
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.