Search code examples
c#asp.netumbraco

Umbraco: CS0234 The type or namespace name 'TextPage' does not exist


I have a website based on Umbraco CMS. Currently the site is running on another site with no problems at all. Now when I tried it on another server, it doesn't work anymore.

This is the detail of the error:

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 'TextPage' 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 _Page_Views_TextPage_cshtml : Umbraco.Web.Mvc.UmbracoTemplatePage { Line 43:
Line 44: #line hidden

I just don't understand why it isn't running wherein they are all the same.

These are the steps that I made: 1. I tried changing the <add key="Umbraco.ModelsBuilder.ModelsMode" value="PureLive" /> to <add key="Umbraco.ModelsBuilder.ModelsMode" value="Dll" /> but it isn't working 2. I already set the application pool to .NET 4.5 which is the same with the previous server that is running.

I hope that you can help me with this. Thank you very much. :-)

enter image description here


Solution

  • This is the answer

    I didn't set the permission in my server.

    What you need to do is to right click the folder and set its security to everyone although it is quite inappropriate. But for experimental purposes, you can set it and you can just manage it later.

    Temporarily, you can just set it to everyone and allow everyone to acces it and it works fine now.