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/archive/2003/04/09/5261.aspx
Web.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings file="YourSettings.config">
<add key="KeyToOverride" value="Original" />
<add key="KeyToNotOverride" value="Standard" />
</appSettings>
<system.web>
<!-- standard web settings go here -->
</system.web>
</configuration>
YourSettings.config:
<appSettings>
<add key="KeyToOverride" value="Overridden" />
<add key="KeyToBeAdded" value="EntirelyNew" />
</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/archive/2004/02/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/d...-us/cpgenref/html/gngrfAppSettingsElement.asp
- Jon
http://weblogs.asp.net/jgalloway