How to manage multiple application under same domain?

Discussion in 'ASP.NET / ASP.NET Core' started by Spock, Nov 20, 2008.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I would like to have more than one application under the same domain space. Here is the problem:
    My main application is at the root folder. When I create a sub-folder and put a new application in it (after making it an application), the root-level web.config fileis read or inherited first, and some I get errors in my new application. The old application is OK. Here is a representation of the folder hierarchy:

    Root
    |
    |
    |-AppData
    |-Images
    |-Main
    |-NewApp
    | |
    | |-AppData
    | |-Images
    | |-Main
    | Web.config
    web.config

    Any ideas would be most appreciated.


    Thank you,

    Ori

    Visual Studio 2005
    ASP.NET 2.0
    WinXP SP3
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    You have 2 options

    1) Set inheritInChildApplications="false" in your root app. This will disable the inheritance to ALL sub app.
    2) Manually override the conflicting setting in the child app.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page