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. how to direct web.config to use sections in subfolders

how to direct web.config to use sections in subfolders

Scheduled Pinned Locked Moved ASP.NET
helptutorial
3 Posts 2 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.
  • N Offline
    N Offline
    nithydurai
    wrote on last edited by
    #1

    I have a web.config Root folder of my application and another web.config in a sub folder. I want the sub folder to use the web.config present in the Root.. can you help to me.....

    L 1 Reply Last reply
    0
    • N nithydurai

      I have a web.config Root folder of my application and another web.config in a sub folder. I want the sub folder to use the web.config present in the Root.. can you help to me.....

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      The configuration settings specified in the web.config from sub folder will always override the settings of the root folder web.config. If you want to use the parent folder configuration settings, then remove the same configuration fron sub folder's web.config. Then it will be taken from root web.config by the application.

      N 1 Reply Last reply
      0
      • L Lost User

        The configuration settings specified in the web.config from sub folder will always override the settings of the root folder web.config. If you want to use the parent folder configuration settings, then remove the same configuration fron sub folder's web.config. Then it will be taken from root web.config by the application.

        N Offline
        N Offline
        nithydurai
        wrote on last edited by
        #3

        I am working on a DLL that will be licensed per domain and am trying to figure out the best way to handle subdomains. How are sub-domains typically setup? I thought something like c:\websites\domainX\www -> virtual directory for www.domainX.com c:\websites\domainX\store -> virtual directory for store.domainX.com Where would the DLL need to be so both "web sites" can use its functionality? Or should the sub domain be setup directly under the www directory c:\websites\domainX\www\store -> virtual directory for store.domainX.com if the bin folder is also under \www will the subdomain site still have access to it? I think if someone navigates to www.domainX.com/store the answer is Yes but if they navigate using store.domainX.com the answer would be No because the root folder is now the Store folder. I currently only have access to XP and IIS5 for development. How can I emulate subdomains in this environment?

        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