Multiple configurations

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jerry III

    #1

    Multiple configurations

    I was just wondering, is there a way to have different configurations for
    different servers in one web.config file? For example, the development
    server would have custom errors turned off while production would have them
    on. And I would like to keep it in one file, since the web.config is in
    source control and I'd like to keep one file for both development and
    production (instead of having two versions, in two projects and trying to
    keep them synchronized, except for the parts I want to be different).
    Something like this:

    <customErrors mode="off" machine="Develo pment" />
    <customErrors mode="on" machine="Produc tion" />

    where the machine attribute would specify the machine name for which the
    setting is intended. Is there a way to do this?

    Jerry


Working...