在Kentico CMS版本7中创建页面时的对象引用

时间:2012-12-20 07:24:28

标签: asp.net sql-server kentico

我安装了最新版本的kenticoCMS(v.7)并创建了一个新的企业站点。现在我想在root网站上创建一个新页面,但是当我点击New page item时会产生错误。我已经尝试过与其他网站相同但仍然是所有人的错误。

提前致谢!

Server Error in '/KenticoCMS' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 209:        get
Line 210:        {
Line 211:            return mStep ?? (mStep = DocumentManager.Step);
Line 212:        }
Line 213:    }


Source File: f:\Asp.net\KenticoCMS\CMSModules\Content\Controls\EditMenu.ascx.cs    Line: 211

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   CMS.DocumentEngine.WorkflowManager.GetNodeWorkflowScopeInternal(TreeNode node) +342
   CMS.DocumentEngine.WorkflowManager.GetNodeWorkflowInternal(TreeNode node) +135
   CMS.DocumentEngine.WorkflowManager.GetPublishedWorkflowStepInternal(TreeNode node) +11
   CMS.DocumentEngine.WorkflowManager.GetStepInfoInternal(TreeNode node) +65
   CMS.DocumentEngine.TreeNode.get_WorkflowStep() +90
   CMS.FormControls.CMSDocumentManager.get_Step() +36
   CMSModules_Content_Controls_EditMenu.get_Step() in f:\Asp.net\KenticoCMS\CMSModules\Content\Controls\EditMenu.ascx.cs:211
   CMSModules_Content_Controls_EditMenu.ReloadMenu() in f:\Asp.net\KenticoCMS\CMSModules\Content\Controls\EditMenu.ascx.cs:448
   CMSModules_Content_Controls_EditMenu.OnPreRender(EventArgs e) in f:\Asp.net\KenticoCMS\CMSModules\Content\Controls\EditMenu.ascx.cs:336
   System.Web.UI.Control.PreRenderRecursiveInternal() +103
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.547 

1 个答案:

答案 0 :(得分:1)

是否可以使用堆栈跟踪复制并粘贴整个错误消息? 此外,似乎有一些损坏的文件 - 我不知道哪个,因为屏幕截图没有显示该异常被抛出的文件的路径。

因此,要刷新我建议的文件,例如应用最新的hotfix