Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Just In Time 4 posts 73 karma points
    Oct 14, 2023 @ 06:27
    Just In Time
    0

    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.

    If anyone has any ideas, please let me know.

  • Just In Time 4 posts 73 karma points
    Oct 15, 2023 @ 06:56
    Just In Time
    0

    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" }

Please Sign in or register to post replies

Write your reply to:

Draft