Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
Did you include the generated models in your solution? And is 'Forside' the name of one of your doctypes?
-Joep
I had the same problem, and I included the Models folder under App_Data to my project, and now it works!
Thanks Joep
Yes I did
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
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.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
Hi,
Did you include the generated models in your solution? And is 'Forside' the name of one of your doctypes?
-Joep
I had the same problem, and I included the Models folder under App_Data to my project, and now it works!
Thanks Joep
Yes I did
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
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.
is working on a reply...