Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?)
Line 41: using Umbraco.Web.Mvc;
Line 42: using Examine;
Line 43: using Umbraco.Web.PublishedModels;
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?
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?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted