Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • jmarkyston 2 posts 42 karma points
    Jul 20, 2022 @ 00:39
    jmarkyston
    0

    Sub App Within Umbraco Requiring Umbraco Inheritance

    I am trying to add an application within the Umbraco directory. This application is not directly related to Umbraco, but web.config settings are being applied to the sub-app because that's just how that works. I know I can use <location> to stop config inheritance, but I'm not sure where to apply it.

    When the sub-app tries to load, it throws "Object reference not set to an instance of an object." from "Umbraco.Web.UmbracoModule.BeginRequest". Looking at other posts, I see I can get around this by changing the sub-app's global.asax to inherit from Umbraco, but I don't think I want that. Would that not stop the sub-app from working?

    Is there a setting I need to add <location> to in the parent Umbraco web config to stop this behavior from attempting to happen? How do I stop the parent Umbraco app from trying to initialize itself in the sub-app?

    I did go down the path of inheriting from Umbraco in the sub-app's global.asax. This led me to an error where Umbraco is trying to redirect to config/splashes/noNodes.aspx. The only reference I see to that in web config is an entry in umbracoReservedUrls.

    I guess what I'm getting at is that I'm unsure how to turn off Umbraco in a sub-app within the Umbraco directory. I've added the sub-app's path in reserved URLs, but that doesn't seem to work either.

  • jmarkyston 2 posts 42 karma points
    Jul 20, 2022 @ 02:08
    jmarkyston
    100

    I answered my own question. For posterity:

    This post was helpful: https://our.umbraco.com/forum/umbraco-7/using-umbraco-7/61041-Umbraco-7-with-child-web-api-application-unable-to-access-CMS

    Wrap <system.web> and <system.webserver> (and apparently <system.web.webPages.razor> if it's there) in the parent Umbraco app with <location path="." inheritInChildApplications="false">.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies