Multiple configurations

Discussion in 'ASP .Net' started by Jerry III, Aug 21, 2003.

  1. Jerry III

    Jerry III Guest

    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="Development" />
    <customErrors mode="on" machine="Production" />

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

    Jerry
     
    Jerry III, Aug 21, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kevin Schneider
    Replies:
    3
    Views:
    609
    Jonathan Allen
    Sep 28, 2004
  2. Ralf Hildebrandt

    configurations and generate

    Ralf Hildebrandt, Sep 24, 2004, in forum: VHDL
    Replies:
    5
    Views:
    530
    Ralf Hildebrandt
    Oct 7, 2004
  3. Replies:
    1
    Views:
    469
    Mike Treseler
    Sep 7, 2005
  4. Matt
    Replies:
    1
    Views:
    370
    Martin Honnen
    Jul 5, 2004
  5. Chris Curvey

    shared logs and multiple configurations

    Chris Curvey, Jun 8, 2006, in forum: Python
    Replies:
    1
    Views:
    390
    Vinay Sajip
    Jun 9, 2006
Loading...

Share This Page