Copied to clipboard

Flag this post as spam?

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


  • Jesper Skjønnemand 40 posts 275 karma points
    May 10, 2019 @ 07:32
    Jesper Skjønnemand
    0

    I hope to use v8 for a new website, but even simple things seem out of order.

    I just created this super simple template, or actually Umbraco created most of it from Create Document Type With Template and Insert Value. I only selected two values and wrapped them in h1 and p.

    But ... preview displays the yellow pages (Server Error in '/' Application)

    @inherits Umbraco.Web.Mvc.UmbracoViewPage<ContentModels.Page>
    @using ContentModels = Umbraco.Web.PublishedModels;
    @{
        Layout = "mainTemplate.cshtml";
    }
    
    <h1>@Model.Value("pageTitle")</h1>
    <p>@Model.Value("pageSummary")</p>
    

    How can this not work?

  • Nik 1510 posts 6651 karma points MVP 4x c-trib
    May 10, 2019 @ 07:50
    Nik
    0

    Hey Jesper,

    Do you have any more details about the error at all? The yellow page you are seeing would normally give you a lot more details about what as gone wrong as at a quick glance the code you've shared looks okay.

    The more information you can share the easier it might be for someone to help :-)

    Thanks

    Nik

  • Jesper Skjønnemand 40 posts 275 karma points
    May 10, 2019 @ 07:58
    Jesper Skjønnemand
    1

    Hi Nik

    I am working on Umbraco Cloud as is, and this is what it displays:

    enter image description here

    I am by no means an expert, but I have managed to build a few sites in v7. However, not much of that code seems to work in v8.

    Best

  • May 16, 2019 @ 09:37
    Abuabdellah | Biker | Umbracian | Freelancer | PPH.me/abuabdellah
    0

    Jesper Skjønnemand, there are many changes from v7 to v8 here is a link I posted to Shannon's pdf.

  • Claushingebjerg 916 posts 2496 karma points
    May 16, 2019 @ 09:15
    Claushingebjerg
    100

    Use Kudu to set custom errors to "off" in your webconfig, to get better error details.

    https://our.umbraco.com/documentation/Umbraco-Cloud/Set-Up/Power-Tools/

Please Sign in or register to post replies

Write your reply to:

Draft