Copied to clipboard

Flag this post as spam?

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


  • Jesper 2 posts 82 karma points
    Nov 02, 2021 @ 08:46
    Jesper
    0

    Cant run the local build in Visual Studio, autogenerated views fails

    Hi,

    This is my first time working with Umbraco, and having problems on building my local environment.

    I have some experiance in .NET 4.x and Razor pages, so I know the basics of that. But in Umbraco I am a total newbie.

    Description of error

    I get a error in my .cshtml views when I am trying to build: Error in cshtml view

    The error I get in my output window in Visual Studio: error CS0234: The type or namespace name 'ListPopular' does not exist in the namespace 'Umbraco.Web.PublishedModels' (are you missing an assembly reference?)

    I am kinda suspecting that this is Umbraco classes that I can call and it render up some razor stuff for me.

    Will take any hint you can give me, referance in the docs, some video or just advice on how to error search a Umbraco project.

    Thank you in advance for tips and referance.

  • Frank Laumann 39 posts 303 karma points
    Nov 02, 2021 @ 10:16
    Frank Laumann
    100

    Hi Jesper

    Yeah this is stupid. I can't figure out how to proberly set up modelsbuilder. But to start with you can remove the <ContentModels.ListPopular> then you can build and try to find out how to get modelsbuilder to work right.

    Best regards Frank

  • Jesper 2 posts 82 karma points
    Nov 02, 2021 @ 13:13
    Jesper
    0

    Hi Frank,

    The problem was more deeper down than expected. But the problem was that a (test)Controller was trying to create StartPage two times and everthing went crazy.

    But thanks for your help, I will mark your answer as solution, because the issue is fixed. And your answer helped :)

    Many thanks Frank From Jesper

Please Sign in or register to post replies

Write your reply to:

Draft