Copied to clipboard

Flag this post as spam?

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

  • Scott Swiger 2 posts 72 karma points
    23 days ago
    Scott Swiger

    Backoffice compilation error

    When trying to access the backoffice in Umbraco 7.15.6, am getting this error:

    Compiler Error Message: CS0234: The type or namespace name 'PublishedModels' does not exist in the namespace 'Umbraco.Web' (are you missing an assembly reference?)
    Source Error:
    Line 41:     using Umbraco.Web.Mvc;
    Line 42:     using Examine;
    Line 43:     using Umbraco.Web.PublishedModels;
    Line 44:     
    Line 45:     #line 2 "C:\pathtoumbracoroot\umbraco\Views\Default.cshtml"

    When I examine umbraco/views/default.cshtml, there is no line: @using Umbraco.Web.PublishedModels;

    In fact searching the entire project for Umbraco.Web.PublishedModels returns 0 results.

    In web.config, Umbraco.ModelsBuilder.Enable is set to false.

    What could explain this error, and how would I resolve it?

  • Scott Swiger 2 posts 72 karma points
    20 days ago
    Scott Swiger

    I resolved this by commenting out the following line in /umbraco/views/web.config:

    <add namespace="Umbraco.Web.PublishedModels" />

    Would still like to know why this exception even started happening, anyone have any idea?

Please Sign in or register to post replies

Write your reply to: