Copied to clipboard

Flag this post as spam?

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


  • jpdel3000 7 posts 27 karma points
    Feb 28, 2020 @ 09:52
    jpdel3000
    0

    Page doesn't load because of RenderBody

    Hey guys! How are you all? I'm having issues with the RenderBody method, that gives me the error "The file "~/Views/webbaseTemplate.cshtml" cannot be requested directly because it calls the "RenderBody" method." my pages are as follows:

    The template i'm using on the page

    The master template

    enter image description here

    And the template tab on the Document type

    enter image description here

    I have searched and tried everything but cant seem to fix it...

    Thanks, and best regards

    PS: Fixed it!

  • Marc Goodson 1451 posts 9716 karma points MVP 5x c-trib
    Feb 28, 2020 @ 14:03
    Marc Goodson
    0

    Hi jpdel3000

    Is it that your webbaseTemplate.cshtml template is 'using itself' as the Layout instead of your master layout view?

    regards

    Marc

  • jpdel3000 7 posts 27 karma points
    Feb 28, 2020 @ 14:33
    jpdel3000
    0

    Hi Mark!

    My webbase template is my master template.

    I dont know how or why, I just deleted everything listed above and created it again and it worked :)

  • 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