SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2008
    Location
    England
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    multiple web.configs

    Hey, i want to put different asp.net projects in different folders. So where would be a root folder/project 1 root/ project 2. only problem it will contain multiple web.config files on the server.

    how do i manage my web.config to target a specific web config.
    I am on a shared hosting account.
    Read my blog...
    Skylight Studios

  2. #2
    SitePoint Mentor NightStalker-DNS's Avatar
    Join Date
    Jul 2004
    Location
    Cape Town, South Africa
    Posts
    2,880
    Mentioned
    48 Post(s)
    Tagged
    0 Thread(s)
    Well, the root will be the place where all the sites read it from. But then each sub-folder will also read it from that folder, and read its own web.config and then combine them. So if you add a submodule or something on the root web.config, it will be available on all sub-folders, unless in those specific sub folders web.config's, you remove them.

  3. #3
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,649
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Depending on the shared setup, you should be able to make each folder it's own application and thereby have independent web.configs (and everything else). Note this kind of precludes running an ASP.NET app in the root, at least for straightforward setups.

  4. #4
    SitePoint Guru pinch's Avatar
    Join Date
    Mar 2005
    Posts
    688
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah your hosting provider should provide a tool for marking a folder as a 'web application'. If they don't then you'll probably have to request through their support to do it for you. Whichever folders you mark, ASP will look for the root web.config for that application within that root folder.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •