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:
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.
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.
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 :)
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:
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.
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
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
is working on a reply...