Note that there are some explanatory texts on larger screens.

plurals
  1. POIn IIS, how should environment/site-specific WEB.CONFIG settings be preserved, when using MSDeploy?
    primarykey
    data
    text
    <h1>Background</h1> <p>I work in QA at a software company.</p> <p>We have about a half a dozen different web applications, each of which may require, at any given site, some customised settings added to its <strong>web.config</strong> file.</p> <p>These can range from which Oracle database/schema(s) the app connects to, to how many search results to cache, to which hierarchy to use when sorting items on a web page.</p> <p>We make use of Microsoft's Deploy package, to get the new releases installed/updated on client sites.</p> <p>When we put out a new release, some of these customised settings may have been added to or removed from the given web app's <strong>web.config</strong> file, but using Deploy to import the new release over the top of the old one will clobber any customisations that may have been made.</p> <h1>Alternatives</h1> <p>There are ways of handling this manually, such as merging via a plain text comparison of the old and new <strong>web.config</strong> files, but these are cumbersome and prone to human error.</p> <p>I was reading about <a href="http://msdn.microsoft.com/en-us/library/dd465326%28VS.100%29.aspx" rel="nofollow">transformations</a> and thought they could be of some use.</p> <p>There is also the capability to <a href="http://weblogs.asp.net/jgalloway/archive/2012/01/17/10-things-asp-net-developers-should-know-about-web-config-inheritance-and-overrides.aspx" rel="nofollow">use external files (tip #8)</a> which seems like a good way to go.</p> <h1>Improvement?</h1> <p>Should our programmers be providing some sort of semi-automated merge facility for this <strong>web.config</strong> file? Does the Deploy package provide this somehow?</p> <p>Should we be making use of the external config files, as a best practice?</p> <p>Is the concept of customising this <strong>web.config</strong> file at each site so fundamentally flawed that the whole thing needs to be re-thought?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload