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
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
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.
Then rebuild the models on the datatypes in the Umbraco backend. I have made a screenshot where you can rebuild the the models.
Hope this helps,
/Dennis
is working on a reply...
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.