Try our conversational search powered by Generative AI!

EPiServer CMO 2.1 - EPiServer CMS 6 R2 - .Net 4.0 - Object reference not set to an instance of an object

Vote:
 

Hi,

I've installed EPiServer CMO 2.1 using Deployment Center on EPiServer CMS 6 R2. Clicking Add campaign or Add test buttons in CMO interface, I'm getting the following error:

2013-04-26 16:39:49,106 ERROR [34] EPiServer.Global.Global_Error - 1.2.5 Unhandled exception in ASP.NET
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at EPiServer.Cmo.UI.Units.PageTreeView.PopulateNodeInformation(PageTreeNode treeNode, Object dataItem)
   at EPiServer.Cmo.UI.Units.PageTreeView.PopulateChildNodes(IHierarchicalEnumerable enumerable, Int32 depth, Int32 expandDepth, PageTreeNode parentNode, ArrayList populationPath)
   at EPiServer.Cmo.UI.Units.PageTreeView.PopulateChildNodes(IHierarchicalEnumerable enumerable, Int32 depth, Int32 expandDepth, PageTreeNode parentNode, ArrayList populationPath)
   at EPiServer.Cmo.UI.Units.PageTreeView.PopulateChildNodes(IHierarchicalEnumerable enumerable, Int32 depth, Int32 expandDepth, PageTreeNode parentNode, ArrayList populationPath)
   at EPiServer.Cmo.UI.Units.PageTreeView.PopulateFromViewPath(String viewPath, Int32 bindDepth)
   at EPiServer.Cmo.UI.Units.PageTreeView.PerformDataBinding()
   at System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect()
   at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
   at System.Web.UI.Control.EnsureChildControls()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.cmo_lpotestsettings_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\f0bba466\57521d7c\App_Web_j4d0hrc4.9.cs:line 0
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

I've installed EPiServer CMO on Windows 7 64bit (IIS 7.5), .Net 4.0 and Windows Server 2012 (IIS8), .Net 4.0 framework. On both machines I'm getting this error. I've tried to solve the issue using the following threads: http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=54476 and http://world.episerver.com/Blogs/Thomas-Krantz-/Dates/2011/1/CMO-20-and-NET-4-installation-problems-and-solutions/ but the error still occurs. Anyone else have experienced similar problems?

Thanks.
#70701
Apr 26, 2013 16:22
Vote:
 

Hello Cristian,

Did you make sure you have viewState enabled on your site?

Please check also this document: http://world.episerver.com/Documentation/Items/Installation-Instructions/EPiServer-CMO/CMO-2-R2/Configuring-CMO-2-R2-to-support-NET-40/

#70749
Apr 29, 2013 13:25
Vote:
 

We are having the very same issue as well. Was this resolved?


We tried the solutions that Sergii provided but it still does not work for us.

 

NOTE: We have an Episerver Enterprise 6 R2 site with CMO 2 R2 with .NET 4.5

#82413
Edited, Mar 11, 2014 23:49
Vote:
 

We have the same issue.

Does anyone know how to resolve it?

#87765
Jun 23, 2014 11:41
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.