Umbraco 13.0.3 Models builder not generating model...
# help-with-umbraco
s
I created a new site yesterday and noticed that I was getting the "CS0234 The type or namespace name 'ErrorPage' does not exist in the namespace 'Umbraco.Cms.Web.Common.PublishedModels' (are you missing an assembly reference?)" message. I identified that template models were no longer generated, yet this morning, the site generated models for compositions I had created. Has anyone experienced this and can point me in the direction of what I need to look at in logs to identify the problem? https://cdn.discordapp.com/attachments/1205511997861527572/1205511998058668062/Screenshot_2024-02-09_134348.png?ex=65d8a389&is=65c62e89&hm=1fabd84ca77ba172a94fdc5c4f97e1839c815d449000c4b7df1ebac9f8a828dd& https://cdn.discordapp.com/attachments/1205511997861527572/1205511998305996880/Screenshot_2024-02-09_134509.png?ex=65d8a389&is=65c62e89&hm=48609da3743e59e405836ccfd4a3803ce224affce522ad6d9201286c0eeca2ba&
s
What Models Mode are you using? The default `InMemoryAuto`or have you set your own?
s
Hi Seb, I'm using "SourceCodeAuto"
s
Ah alright, check the modelsbuilder dashboard.. If the model doesn't exist then I guess the build fails because the View is included in Visual Studio, so in order to get the project to build again you're probably going to need to exclude the views from your project
I'll try that now, excluding it from the project and generating models from the dashboard?
s
Sounds about right, how did that go?
s
No change I'm afraid 😦
s
Is there an ErrorPage document type? And does it generate a model for it in the models directory?
s
It does. I'm waiting on an upgrade to my VS and I can check if the CS0234 error has gone
s
No worries, so you needed a VS upgrade? So weird! 😅
s
I spotted an another error message so I updated it 😂
s
No way to prove it now, but sometimes the good old "have you tried turning it off and on again" just works. So could have just been restarting VS that did the trick 😂
s
It could be, indeed. I don't think it was upgrade-related as the model was generated before I started the upgrade process.
s

https://tenor.com/bY2vS.gif

7 Views