Copied to clipboard

Flag this post as spam?

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


  • Jamie l Cunningham 1 post 71 karma points
    Dec 09, 2022 @ 14:22
    Jamie l Cunningham
    0

    Error with Clean Install

    Hello!

    Brand new to Umbraco and I've installed it using the developer command line - I can run it just fine, it created the database - no problem

    I also installed the clean starter package

    when I view any of the pages there's an error underneath the title - the content of the page seems to all be there

    the error looks like

    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)
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Mvc.Razor.Compilation.DefaultRazorPageFactoryProvider.CreateFactory(String relativePath)
       at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.CreateCacheResult(HashSet`1 expirationTokens, String relativePath, Boolean isMainPage)
       at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.OnCacheMiss(ViewLocationExpanderContext expanderContext, ViewLocationCacheKey cacheKey)
       at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.LocatePageFromViewLocations(ActionContext actionContext, String pageName, Boolean isMainPage)
       at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.FindView(ActionContext context, String viewName, Boolean isMainPage)
       at Umbraco.Cms.Web.Website.ViewEngines.ProfilingViewEngine.FindView(ActionContext context, String viewName, Boolean isMainPage)
       at Microsoft.AspNetCore.Mvc.ViewEngines.CompositeViewEngine.FindView(ActionContext context, String viewName, Boolean isMainPage)
       at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.RenderPartialCoreAsync(String partialViewName, Object model, ViewDataDictionary viewData, TextWriter writer)
       at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.PartialAsync(String partialViewName, Object model, ViewDataDictionary viewData)
       at AspNetCore.Views_Partials_grid_editors_base.ExecuteAsync() in D:\Virtual Web\Umbraco_SONET\Views\Partials\grid\editors\base.cshtml:line 6
    

    ideas?

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

    Did you ever get this working? I'm having a similar error when trying to publish a V12 project.

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Oct 14, 2023 @ 06:23
    Huw Reddick
    0

    what version of Umbraco are you installing?

  • roger malik 16 posts 78 karma points
    Oct 17, 2023 @ 08:06
    roger malik
    0

    I'm getting it on V11.3. Its working fine in development, but the published site is giving this error on some pages. Quite concerning that no-one from Umbraco has answered this.

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Oct 17, 2023 @ 08:55
    Huw Reddick
    0

    Hi roger, this is a community based forum, if you require a response from Umbraco you should contact their support directly.

    There is also an Umbraco DIscord channel you could try which may get more responses.

    Is your error exactly the same as the one in the original post?

  • Just In Time 4 posts 73 karma points
    Oct 17, 2023 @ 13:52
    Just In Time
    0

    I'm using v12.2.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