Copied to clipboard

Flag this post as spam?

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


  • Keith Petersen 67 posts 111 karma points
    Oct 28, 2009 @ 16:39
    Keith Petersen
    0

    Can't exclude a path using umbracoReservedPaths

    We're planning to use Umbraco for the next refresh of our website, but have hit a configuration/organization snag. We're using Umbraco 4.0.2.1 and IIS 6.0, asp.net 2.0. We have several pre-existing web apps under the current root website, like www.example.com/oldapp/. Umbraco will have to be installed as the root of this website. We don't have the resources to rebuild all the apps as Umbraco-based apps, so we tried excluding them from Umbraco using umbracoReservedPaths, like so:

    <add key="umbracoReservedPaths" value="/umbraco,/install/,/oldapp/" />

    We then get a config error when we navigate to www.example.com/oldapp/. This is the error:

    Could not load file or assembly 'UrlRewritingNet.UrlRewriter' or one of its dependencies. The system cannot find the file specified. (D:\Inetpub\wwwroot\umbracotest\web.config line 79)

    We tried removing the trailing slash from the umbracoReservedPaths key value, putting the old in the same app pool as umbraco, with no difference. The old app's web.config is inheriting from umbraco's web.config. Even when the umbraco app pool is disabled we get the error, so it's like umbraco isn't even kicking in yet. I know about <clear /> elements and <location allowOverride="false"/>, but those seem like hacks in this situation. (And I'd think <location allowOverride="false"/> would break umbraco.) What's going on here?

    Thanks!

  • Shea Daniels 8 posts 28 karma points
    Oct 30, 2009 @ 16:48
    Shea Daniels
    0

    I would be interested in an answer to this as well, if anyone would be willing to help. I tried to vote up the topic but it looks like I don't have enough karma yet :)

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Oct 30, 2009 @ 17:41
    Thomas Höhler
    0

    We have several own applications in subfolders of umbraco. Did you mark the folder with the old webapp as web application in IIS? Then it takes the web.config of the subfolder without inheritance of the root folder (I guess so). We added an entry like this to the key:

    <add key="umbracoReservedPaths" value="/umbraco/,/install/,/SUBFOLDER_WITH_THE_OTHER_APP/" />

    hth, Thomas

  • Stephan Lonntorp 195 posts 212 karma points
    Oct 30, 2009 @ 21:46
    Stephan Lonntorp
    0

    Exactly as Thomas said, any separate applications need to be registered in IIS as virtual folders, otherwise their assemblies won't get loaded.

     

    You could try to put all sub-app .dll's in the main /bin, and all settings in the one web.config, but I don't think that's a very scaleable, or maintainable approach.

Please Sign in or register to post replies

Write your reply to:

Draft