Web.Config

Last post 03-13-2007 2:33 AM by XIII. 1 replies.

Sort Posts:

  • Web.Config

    03-13-2007, 2:22 AM

     

    Is it possible to have two web.config file in a project....

    Help me...

    Filed under: ,
  • Re: Web.Config

    03-13-2007, 2:33 AM
    Answer
    • Loading...
    • XIII
    • Joined on 07-01-2002, 3:59 AM
    • Essen, Belgium
    • Posts 9,866
    • Moderator
      TrustedFriends-MVPs

    Hi,

    yes you can have multiple web.config files in the same project but not in the same folder. What happens is that web.configs override settings from a web.config that's higher in the hierarchy in a cascading way. Ultimately the web.config in the root of your project will override the default settings of the machine.config file.

    If you want to use 1 web.config file but want to have different settings for a certain file or subfolder you can use the <location> element in the web.config.

    Grz, Kris.

    Read my blog | Members are volunteers so please keep out the (it's urgent | asap | reply me directly) stuff. Nobody's interested in that.
    Filed under: ,
Page 1 of 1 (2 items)
Microsoft Communities
Page view counter