Copied to clipboard

Flag this post as spam?

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


  • Peter Cort Larsen 418 posts 1015 karma points
    Oct 22, 2020 @ 10:49
    Peter Cort Larsen
    0

    New installation models problem

    Hi,

    On a new umb 8.8 installation i use modelsbuilder LiveAppData.

    The models get generated in VS.

    On my template i have this (which is generated out of the box).

    The type 'Forside' is not valid. Cant i use strongly typed models?

    It says: The type or namespace name 'Forside' does not exist in the namespace 'Umbraco.Web.PublishedModels' (are you missing an assembly reference?)

    @inherits Umbraco.Web.Mvc.UmbracoViewPage

    @using ContentModels = Umbraco.Web.PublishedModels;

    @{ Layout = "Master.cshtml"; }

    @Model.GoogleTagManager

  • Joep 96 posts 698 karma points
    Oct 22, 2020 @ 13:44
    Joep
    0

    Hi,

    Did you include the generated models in your solution? And is 'Forside' the name of one of your doctypes?

    -Joep

  • Nicolai Christiansen 4 posts 96 karma points
    Oct 25, 2020 @ 20:43
    Nicolai Christiansen
    100

    I had the same problem, and I included the Models folder under App_Data to my project, and now it works!

    Thanks Joep

  • Peter Cort Larsen 418 posts 1015 karma points
    Oct 26, 2020 @ 07:13
    Peter Cort Larsen
    0

    Yes I did

  • Peter Cort Larsen 418 posts 1015 karma points
    Oct 22, 2020 @ 13:50
    Peter Cort Larsen
    0

    I tried again, i think it might have been the .net version. First i used 4.8 then with 4.7.2 i got it to work

  • Peter Cort Larsen 418 posts 1015 karma points
    Oct 26, 2020 @ 07:12
    Peter Cort Larsen
    0

    Thanks Nico, sounds like an eas fix. I actually ended up using api models builder, which was my plan all along. Just wanted to try liveappdata also.

Please Sign in or register to post replies

Write your reply to:

Draft