?
Solved

IIS 7 Shared Configuration - Machine Specific Values

Posted on 2009-07-15
10
Medium Priority
?
725 Views
Last Modified: 2012-05-07
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?
0
Comment
Question by:zippo76
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
10 Comments
 
LVL 37

Expert Comment

by:meverest
ID: 24889149
put host specific configuration into %systemroot%/system32/inetsrv/config/applicationhost.config

Cheers.
0
 

Author Comment

by:zippo76
ID: 24927791
But if this is also a shared config, the application host is also shared.
0
 
LVL 37

Accepted Solution

by:
meverest earned 500 total points
ID: 24930417
Hi,

>> But if this is also a shared config, the application host is also shared.

shared %systemroot% between independent hosts?  That would not be a good idea! ;-)  Although you probably could acheive that technically, you will almost certainly end up with corrupted drives by each system attempting to write to the system disks at the same time.
0
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

 

Author Comment

by:zippo76
ID: 24930457
No, iis7 shared config on a dfs.  The local applicationhost.config is not used in favor of the shared one.
0
 
LVL 51

Expert Comment

by:Ted Bouskill
ID: 25000059
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?
0
 

Author Comment

by:zippo76
ID: 25003439
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.
0
 
LVL 51

Expert Comment

by:Ted Bouskill
ID: 25006760
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.
0
 
LVL 51

Expert Comment

by:Ted Bouskill
ID: 26040325
Award full points so http://#24930417
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question