Copied to clipboard

Flag this post as spam?

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


  • Carla Goldburg 1 post 71 karma points
    May 05, 2016 @ 16:07
    Carla Goldburg
    0

    CS0234: Compliation Error

    Hi,

    I am new to umbraco. I have downloaded and installed umbraco 7.4.3 to my computer.

    I am following the "Creating a Basic Site" turtorial at https://our.umbraco.org/documentation/Tutorials/ .
    I have created a Document Type, a template, and content node.
    I saved and published the page but when I preview or view the page I get the following error:

    Server Error in '/' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS0234: The type or namespace name 'Homepage' does not exist in the namespace 'Umbraco.Web.PublishedContentModels' (are you missing an assembly reference?)

    Source Error:

    Line 40:
    Line 41:
    Line 42: public class PageViewsHomepagecshtml : Umbraco.Web.Mvc.UmbracoTemplatePage

    Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\30b4efcc\72135c1f\AppWebhomepage.cshtml.65a2d1ee.kymu8rns.0.cs Line: 42

    How do I get this to compile?

    Thank You

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    May 07, 2016 @ 19:23
    Dennis Aaen
    0

    Hi Carla and welcome to our.

    I found a similar thread on the same issue with the ModelsBuilder. Try to see this, and especially Stéphan comments and blog post

    https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/74952-autogenerated-templates-do-not-compile

    What you need to do is Found the solution. It should be enough to edit the web.config like this if you don´t already have them.

    <add key="Umbraco.ModelsBuilder.Enable" value="true" />
    <add key="Umbraco.ModelsBuilder.ModelsMode" value="PureLive" />
    

    Then rebuild the models on the datatypes in the Umbraco backend. I have made a screenshot where you can rebuild the the models.

    enter image description here

    Hope this helps,

    /Dennis

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies