Copied to clipboard

Flag this post as spam?

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


  • Meni 243 posts 479 karma points
    Feb 06, 2023 @ 07:15
    Meni
    0

    Hi, In my Umbraco 7 website when I click the home page it takes me to:

    www.myhomepage.net/Default.aspx
    

    But in the Umbraco 11 for

    www.myhomepage.net/Default
    

    It gives the following error:

    No umbraco document matches the URL '/Default'.
    

    Another question:

    Some of my pages in my Umbraco 7 ending with .aspx , for example: www.myhomepage.net/customSection.aspx

    However in my Umbraco 11 website it gives error. So I need to route to: www.myhomepage.net/customSection

    What's the reason? How can I render .aspx pages in Umbraco 11?

    Thanks

  • Huw Reddick 1702 posts 5999 karma points MVP c-trib
    Feb 06, 2023 @ 07:56
    Huw Reddick
    0

    You would not generally be using .aspx pages in Umbraco versions above 8, they use the MVC pattern which does not use razor pages.

    You will need to redo your aspx pages so they are views (.cshtml) pages instead.

    It is possible to use .aspx pages with .net core but possibly not with Umbraco, you can read about razor pages and .net core here https://learn.microsoft.com/en-us/aspnet/core/razor-pages/?view=aspnetcore-7.0&tabs=visual-studio

Please Sign in or register to post replies

Write your reply to:

Draft