Umbraco:CS0234类型或名称空间名称'TextPage'不存在 [英] Umbraco: CS0234 The type or namespace name 'TextPage' does not exist

查看:54
本文介绍了Umbraco:CS0234类型或名称空间名称'TextPage'不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基于Umbraco CMS的网站.当前,该站点正在另一个站点上运行,完全没有问题.现在,当我在另一台服务器上尝试时,它不再起作用.

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.

这是错误的详细信息:

编译错误

描述:在为该请求提供服务所需的资源的编译过程中发生错误.请查看以下特定的错误详细信息,并适当地修改您的源代码.

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.

编译器错误消息:CS0234:类型或名称空间名称'TextPage'在名称空间'Umbraco.Web.PublishedContentModels'中不存在(您是否缺少程序集引用?)

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?)

源错误:

第40行:
第41行:
第42行:公共类_Page_Views_TextPage_cshtml:Umbraco.Web.Mvc.UmbracoTemplatePage {第43行:
第44行:#line隐藏了

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.

这些是我执行的步骤:1.我尝试将< add key ="Umbraco.ModelsBuilder.ModelsMode" value ="PureLive"/> 更改为< add key ="Umbraco.ModelsBuilder.ModelsMode"值="Dll"/> ,但不起作用2.我已经将应用程序池设置为.NET 4.5,与正在运行的先前服务器相同.

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. :-)

推荐答案

这就是答案

我没有在服务器中设置权限.

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.

这篇关于Umbraco:CS0234类型或名称空间名称'TextPage'不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆