DNN And Sub-WebApps

Discussion in 'Third-party applications' started by wisemx, Feb 11, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi,
    web.config inheritance is no less than a nightmare in cases like this.
    Keep an eye on Scott Gu's blog, he covers this sort of thing from time to time.
    For now make sure you are creating an Application for your other app and that it is in its own folder, not the root.
    Use my Developer Search coops below to find other tips...hopefully you'll get this one under control.
    Salute,
    Mark

    Technical Evangelist for DiscountASP.NET

    Find ASP.NET code samples with my Dev Coop search tools below.
    Google
    Microsoft

    DiscountASP.NET Technical Webcasts:
    http://www.iis7test.com/webcasts/

    My Microsoft Technical Blogs
    http://weblogs.asp.net/markwisecarver/
    http://blogs.windowsclient.net/wisecarver/default.aspx
     
  2. I'm running DotNetNuke as my root application, and I needed one small .aspx page in another application run in a subdir, but the subapplication's web.config is inheriting DotNetNuke's web.config.


    With older versions of DNN I could stop the inheritance by adding a inheritInChildApplications="false" to the location tag in DNN's web.config, but with v5.0, adding this breaks the application.


    Is there *any* way at all to set up these so they aren't nested applications?


    I need to keep my domain name as my DNN application, but I need some way to have another application run properly on my host without DNN interfering.


    I'm going crazy trying to get this to work.


    p.s. - I've already posted this on DNN help forums, but to no avail.
     
  3. Right, sorry, I should have mentioned that the subfolder is configured as an ASP .NET application. I have

    ~/ (Root Application - Contains DNN because my domain has to default to this application)
    ~/SubApp (A second application that needs to be independent of the DNN application)

    I know that if it was my host I could put the applications in parallel folders so that the one isn't a child application of the other, but with this host it doesn't *appear* to give me any option like that.

    So:
    ~/SubApp/web.config (second application's web.config)
    is inheriting all of the DNN config that is placed in the root
    ~/web.config

    if I modify the ~/web.config to have "inheritInChildApplications="false"", then the DNN installation gives an error after every login, but the ~/SubApp application works fine. If i remove the "inheritInChildApplications="false"" then DNN works fine, but the ~/SubApp application does not work.

    I'm not sure if the solution is going to be a standard ASP solution, or if the solution is going to be a different way to configure my Discount ASP.NET Hosting setup.
     
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