Try our conversational search powered by Generative AI!

YSOD on EPiServer CMO 2.1

Vote:
 

Hello Everyone,

 

I have installed the EPiServer CMO 2.1 plugin onto an EPiServer CMS 6 R2 site with EPiServer Commerce 1.1 running on Windows Server 2008 with .Net Framework 4.0. Currently, I can browse to the Overview, LPO, Campaigns and Settings pages, but when I try to add a test or campaign, I'm having the following error screen:

 

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: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace: 

[NullReferenceException: Object reference not set to an instance of an object.]
   EPiServer.Business.Commerce.Providers.CatalogPageProvider.GetNodePageName(IDictionary`2 key, List`1 existingLanguages, String langCode, CatalogRow catalog) +234
   EPiServer.Business.Commerce.Providers.CatalogPageProvider.GetExistingLanguage(IDictionary`2 key, CatalogRow catalog, PageReference pageLink, ILanguageSelector languageSelector, NodeType nodeType, String& pageName, String& languageBranchId) +833
   EPiServer.Business.Commerce.Providers.CatalogPageProvider.GetPage(String key, PageReference pageLink, ILanguageSelector languageSelector) +494
   EPiServer.Business.Commerce.Providers.MappedPageProvider.GetLocalPage(PageReference pageLink, ILanguageSelector languageSelector) +311
   EPiServer.Core.<>c__DisplayClass4.<GetPageInternal>b__3() +148
   EPiServer.Core.OptimisticCache`1.Read(String cacheKey, ReadAndCacheObject`1 readAndCacheObject) +1253
   EPiServer.Core.PageProviderBase.GetPageInternal(PageReference pageLink, ILanguageSelector selector) +830
   EPiServer.Core.PageProviderBase.GetPage(PageReference pageLink, ILanguageSelector selector) +264
   EPiServer.Core.PageProviderBase.GetPages(PageReferenceCollection pageReferences, ILanguageSelector selector) +246
   EPiServer.Core.PageProviderBase.GetScatteredPages(IList`1 pageRefs, ILanguageSelector selector) +509
   EPiServer.Core.PageProviderBase.GetChildren(PageReference pageLink, ILanguageSelector selector, Int32 startIndex, Int32 maxRows) +420
   EPiServer.DataFactory.GetChildren(PageReference pageLink, ILanguageSelector selector, Int32 startIndex, Int32 maxRows) +708
   EPiServer.Cmo.UI.Units.CmoPageDataSource.GetChildrenForLoader(PageReference pageLink) +51
   EPiServer.Web.WebControls.HierarchicalPageLoader.GetFilteredChildren(PageReference pageLink) +115
   EPiServer.Web.WebControls.PageHierarchyData.get_HasChildren() +193
   EPiServer.Cmo.UI.Units.PageTreeView.PopulateChildNodes(IHierarchicalEnumerable enumerable, Int32 depth, Int32 expandDepth, PageTreeNode parentNode, ArrayList populationPath) +654
   EPiServer.Cmo.UI.Units.PageTreeView.PopulateChildNodes(IHierarchicalEnumerable enumerable, Int32 depth, Int32 expandDepth, PageTreeNode parentNode, ArrayList populationPath) +851
   EPiServer.Cmo.UI.Units.PageTreeView.PopulateFromViewPath(String viewPath, Int32 bindDepth) +274
   EPiServer.Cmo.UI.Units.PageTreeView.PerformDataBinding() +149
   System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect() +140
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +146
   System.Web.UI.Control.EnsureChildControls() +189
   System.Web.UI.Control.PreRenderRecursiveInternal() +73
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4048

 

I have already covered the points that are explained at http://dmytroduk.com/techblog/episerver-cmo-components-and-simple-installation-scenario but I still have no success in creating an A/B test. BTW, the CMO plugin is running without problem in my local development machine.

 

Any help would be most welcome!

Firat

#85148
Apr 16, 2014 11:21
Vote:
 

I also uninstalled and reinstalled the CMO plugin according to the guide here, but again, no success.

http://world.episerver.com/Framework/Templates/Page.aspx?id=48800&epslanguage=en#uninstall

#85150
Apr 16, 2014 11:26
Vote:
 

It looks like it fails when Commerce page provider is loading catalog item data in order to show it in page tree in CMO UI.

Is there any difference in Commerce data on your dev machine and on that machine where you have this problem?

#85954
May 09, 2014 11:04
* 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.