Copied to clipboard

Flag this post as spam?

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


  • Hywel Bromby 33 posts 63 karma points
    Nov 04, 2009 @ 11:06
    Hywel Bromby
    0

    Standard asp.net outside of Umbraco

    Hi

    I am is there any way of using standard asp.net alongside umbraco, I have a site that runs umbraco, but i also wish to use the same hosting for some standard asp.net pages (upload area etc) that i dont want to / know how to do in umbraco.

    Is there any way to run the 2 side by side?

    Cheers

    Hywel

  • Petr Snobelt 923 posts 1535 karma points
    Nov 04, 2009 @ 11:12
    Petr Snobelt
    1

    You can add your app into folder and then set umbraco to ignore this folder by adding it into umbracoReservedPaths key in web.config.

    Petr

  • Rasmus Berntsen 215 posts 253 karma points c-trib
    Nov 04, 2009 @ 13:06
    Rasmus Berntsen
    0

    Yes, indeed. Peter is right. Here's the way to do it:

    <add key="umbracoReservedUrls" value="/config/splashes/booting.aspx,/install/default.aspx,/config/splashes/noNodes.aspx,/MyNewPage.aspx,/MyNewDir/MyNewPage.aspx" />

    Just remember to seperate with a comma, then everything should be fine...

     

  • Rasmus Berntsen 215 posts 253 karma points c-trib
    Nov 04, 2009 @ 13:06
    Rasmus Berntsen
    0

    Ahhh sorry, Petr, not Peter. My bad. :)

  • Hywel Bromby 33 posts 63 karma points
    Nov 10, 2009 @ 17:19
    Hywel Bromby
    0

    Nice one thanks guys.

  • Jay Walker 10 posts 38 karma points
    Nov 25, 2009 @ 22:07
    Jay Walker
    0

    My experience is that I also have to add a ton of umbraco related dlls to the subfolder/bin folder as well. (umbraco.*.dll, UrlRewrite, businesslogic, etc). Am I doing something wrong? I added my folder (/projects/) to the reservedurls and reservedPaths keys.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Nov 25, 2009 @ 22:11
    Dirk De Grave
    0

    Jay, is that subfolder configured as an application in iis? If so, yes, some dll's will have to be repeated. Otherwise, I don't see why you should add the /bin folder and dll's from the root /bin folder (Or I might be missing the point)

     

    Cheers,

    /Dirk

  • Gary 20 posts 44 karma points
    Nov 26, 2009 @ 00:08
    Gary
    1

    I think the answer lies in weather you wish the pages to run under the umbraco installation or as a virtual site. If, as Dirk says, you are just adding asp.Net pages to the umbraco site, you just need to place them in a new folder (for convenience) and add the folder in the reserved URLs.

    If going down the virtual directory option, the root web.config will have entries such as:

    <httpModules>
    <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter"/>
    .
    .
    .
    </httpModules>

    Any virtual site below this will use this configuration (it cascades). You can copy the DLL to the bin directory in the virtual site or preferably (IMO) you can remove the call in the virtual sites web.config:

    <httpModules>
    <remove name="UrlRewriteModule"/>
    .
    .
    .
    </httpModules>

    You will also need to remove unnecessary Handlers

    <httpHandlers>
        <remove verb="*" path="manage/channels.aspx" />
        .
        .
        .
    </httpHandlers>

    and remove/comment out any sections that are in the root web.config that is used in the virtual site and probably should remove the role manager.

    Well, that's how I did it anyway!

  • Gary 20 posts 44 karma points
    Nov 26, 2009 @ 00:10
    Gary
    0

    urgh, I can't believe I spelt whether as weather (well I can believe it but am a little embarrassed . . .)

     

  • philw 99 posts 434 karma points
    Jun 13, 2013 @ 18:06
    philw
    0

    With the latest version of asp.net if you wrap sections of your web.config with

    <location path="." inheritInChildApplications="false">

    Then you can stop the cascading. You can work out by trial and error which bits of the Umbraco 6 web.config need it - system.web and system.webserver did the job for me. Then you have a clean application to start with.

     

Please Sign in or register to post replies

Write your reply to:

Draft