zippo76
asked on
IIS 7 Shared Configuration - Machine Specific Values
We are investigating using shared configuration and dfs storage for our docroots. My question is we have specific config values in our .net app for each server in the farm. What is the way to achieve this config?
ASKER
But if this is also a shared config, the application host is also shared.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
No, iis7 shared config on a dfs. The local applicationhost.config is not used in favor of the shared one.
Settings in the machine.config and applicationhost.config are the correct locations for these type of settings. Use the web.config file for settings that work on any server and the applicatiohost.config for machine specific settings. meverest gave you the correct answer.
BTW: What settings are unique to each machine?
BTW: What settings are unique to each machine?
ASKER
96% of our configs are the same. Its a few keys in appsettings (ie: google maps api and a few custom values). The issue w/ using machine config is that we have multiple clone sites on each box where those same appsetting values will change. So i we had a key XXX w/ 999 as the in the appsetting on server1 port 80, i need XXX to have a value of 888 on server2 port 80 and a value of 777 back on Server1 port 82.
I've done some searches and am receiving conflicting results regarding local override of the shared configuration. According to some you can use the local web.config to override each local web application. You might have to setup a test and try it.
Award full points so http://#24930417
Cheers.