Just looking at a few possibilities here. I have a need to load separate config, based on a url parameter, it is possible.
In my Web.config I have <appsettings configSource="settings.config"/> to take all the custom config out of the web.config, and I'd like to load a different file depending on a url Parameter.
I think this can be done, but does the app pool recycle if the web.config is changed - I don't want this as there may be open sessions that will get lost (I think)
Alternatively I can move the config to a database, but I don't want to keep hitting the DB for config data, so is there a way to load the config once on startup and read the in memory config for the application. This may be loading a config for each url param (only likely to be 2 or 3).
Any direction or example of what other have done would be great.
Another option that is open to me is to have a list of keys in the web config, 1 for each url parameter (they are known) and have an ID/config file and read the corresponding congig file based on ID.
Can anyone help with this option, or is there a better way.