Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Can we have more than one web.config in one project ?

Can we have more than one web.config in one project ?

Scheduled Pinned Locked Moved ASP.NET
question
6 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RaviJJain
    wrote on last edited by
    #1

    Can we have more than one web.config in one project ?

    V _ S M N 5 Replies Last reply
    0
    • R RaviJJain

      Can we have more than one web.config in one project ?

      V Offline
      V Offline
      vamsivss
      wrote on last edited by
      #2

      yes, we can, for every individual page, or directotry or for a total application we maintain no. of web.config files. vamsi

      1 Reply Last reply
      0
      • R RaviJJain

        Can we have more than one web.config in one project ?

        _ Offline
        _ Offline
        _AK_
        wrote on last edited by
        #3

        Yes, you can have more than one config file in a project.

        Apurva Kaushal

        1 Reply Last reply
        0
        • R RaviJJain

          Can we have more than one web.config in one project ?

          S Offline
          S Offline
          Sathesh Sakthivel
          wrote on last edited by
          #4

          yes we can have more web.config file but it should not be in the same root folder.

          Regards, Satips.:rose: Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Walk beside me, and just be my friend. - Albert Camus

          1 Reply Last reply
          0
          • R RaviJJain

            Can we have more than one web.config in one project ?

            M Offline
            M Offline
            Mustakim Mansuri
            wrote on last edited by
            #5

            Hi RaviJJain, Yes,we can add more than one web.config in one project. But Level of .Config file is must be different. If you add one web.config file at root of your web application, you can add new .Config file in different folder in your application. As an example, you don't want to access any anonymous user to view content of "masteradmin" folder. For this purpose you can add new .Config file in your "masteradmin" folder. Here if you have allready <--authentication><--/authentication> part in root's web.config and you have same <--authentication> block in "masteradmin"'s .config file, <--authentication> block that is for "masteradmin" folder is overriden from Root's config file. -- modified at 3:08 Thursday 12th July, 2007 -- modified at 3:09 Thursday 12th July, 2007

            Mustakim Mansuri

            1 Reply Last reply
            0
            • R RaviJJain

              Can we have more than one web.config in one project ?

              N Offline
              N Offline
              neerubee
              wrote on last edited by
              #6

              Yes we can have more than 1 web.config file.For each folder you can have one web.config file Regards, Niranjan

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups