Copied to clipboard

Flag this post as spam?

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


  • Michael Stanley 7 posts 27 karma points
    Apr 23, 2010 @ 20:55
    Michael Stanley
    0

    How do I include an ASP.NET page in an Umbraco web site?

    I would like to include an ASP.NET page (e.g., http://localhost/MyPages/MyPage.aspx) in my Umbraco web site. If I add the MyPages folder and copy MyPage.aspx into it, I get the error shown below. Is there a way to do this?

     

    ****************************** ERROR MESSAGE **********************************

    Page not found

    No umbraco document matches the url 'http://umb.mg.local/MyPages/MyPage.aspx'

    umbraco tried this to match it using this xpath query'/root/node/node [@urlName = "mypages"]/node [@urlName = "mypage"] | /root/node [@urlName = "mypage"]')

    This page can be replaced with a custom 404 page by adding the id of the umbraco document to show as 404 page in the /config/umbracoSettings.config file. Just add the id to the '/settings/content/errors/error404' element.

    For more information, visit information about custom 404 on the umbraco website.

    This page is intentionally left ugly ;-)

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Apr 23, 2010 @ 21:13
    Morten Bock
    1

    You need to tell umbraco not to handle your own pages in the url's. In the web.config, add your path like this:

        <add key="umbracoReservedPaths" value="/umbraco/,/MyPages/" />

    That way, umbraco will not pick up any requests to you folder.

  • Michael Stanley 7 posts 27 karma points
    Apr 23, 2010 @ 21:29
    Michael Stanley
    0

    Perfect! Thank you Morten.

  • 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