Issues going live - Missing Media Folder and Blank Front End (V12.2.0),
I've just started using Umbraco (V12.2.0), and on my local system everything went fine.
Moving to my hosting server I am having a few issues.
I developed in VS 2022 using SQL server Express and in the published output the wwwroot/media folder wasn't added to the export.
Took a while to workout it was missing, but that's sorted.
My current issue is the backend/admin area all works fine. I can view the content, etc.
However the frontend just shows blank pages.
Looking at developer tools, the pages are getting 500 errors back from the Get calls.
Settings >> Log Viewer returns an error:
Umbraco.Cms.Web.Common.ModelsBuilder.InMemoryAuto.UmbracoCompilationException: Exception of type 'Umbraco.Cms.Web.Common.ModelsBuilder.InMemoryAuto.UmbracoCompilationException' was thrown.
at Umbraco.Cms.Web.Common.ModelsBuilder.InMemoryAuto.CollectibleRuntimeViewCompiler.CompileAndEmit(RazorCodeDocument codeDocument, String generatedCode)
at Umbraco.Cms.Web.Common.ModelsBuilder.InMemoryAuto.CollectibleRuntimeViewCompiler.CompileAndEmit(String relativePath)
at Umbraco.Cms.Web.Common.ModelsBuilder.InMemoryAuto.CollectibleRuntimeViewCompiler.OnCacheMiss(String normalizedPath)
I'm not sure if any other folders we missing from the published output or if there is an issue with how I have it configured.
It's hosted on a windows server with IIS 10 & sql server express.
Issues going live - Missing Media Folder and Blank Front End (V12.2.0),
I've just started using Umbraco (V12.2.0), and on my local system everything went fine.
Moving to my hosting server I am having a few issues.
I developed in VS 2022 using SQL server Express and in the published output the wwwroot/media folder wasn't added to the export.
Took a while to workout it was missing, but that's sorted.
My current issue is the backend/admin area all works fine. I can view the content, etc.
However the frontend just shows blank pages. Looking at developer tools, the pages are getting 500 errors back from the Get calls.
Settings >> Log Viewer returns an error:
I'm not sure if any other folders we missing from the published output or if there is an issue with how I have it configured.
It's hosted on a windows server with IIS 10 & sql server express.
If anyone has any ideas, please let me know.
After a lot of searching and trial and error. I finally found out how to fix this.
Just added this to the config:
"ModelsBuilder":{ "ModelsMode":"Nothing" }
is working on a reply...