https://discord.umbraco.com logo
#help-with-umbraco
Umbraco 13.0.3 Models builder not generating models
# help-with-umbraco
s

sianwevz

02/09/2024, 1:54 PM
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

Sebastiaan

02/09/2024, 1:55 PM
What Models Mode are you using? The default `InMemoryAuto`or have you set your own?
s

sianwevz

02/09/2024, 1:57 PM
Hi Seb, I'm using "SourceCodeAuto"
s

Sebastiaan

02/09/2024, 2:00 PM
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

Sebastiaan

02/09/2024, 2:17 PM
Sounds about right, how did that go?
s

sianwevz

02/09/2024, 2:27 PM
No change I'm afraid 😦
s

Sebastiaan

02/09/2024, 2:32 PM
Is there an ErrorPage document type? And does it generate a model for it in the models directory?
s

sianwevz

02/09/2024, 2:40 PM
It does. I'm waiting on an upgrade to my VS and I can check if the CS0234 error has gone
s

Sebastiaan

02/09/2024, 2:55 PM
No worries, so you needed a VS upgrade? So weird! 😅
s

sianwevz

02/09/2024, 2:56 PM
I spotted an another error message so I updated it 😂
s

Sebastiaan

02/09/2024, 2:58 PM
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

sianwevz

02/09/2024, 2:58 PM
It could be, indeed. I don't think it was upgrade-related as the model was generated before I started the upgrade process.
s

Sebastiaan

02/09/2024, 4:23 PM

https://tenor.com/bY2vS.gif