Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: NullReferenceException for XML template page

$
0
0
Installed C1 4.2 Bare bones using MS Web PI 5 on IIS 8.5.
Created XML based Page Template. Created Page Type. Create Page and published it.
Tried to access the newly created page:
[NullReferenceException: Object reference not set to an instance of an object.]
   Composite.Data.PageManager.GetCacheKey(Guid id) +111
   Composite.Data.PageManager.GetPageById(Guid id, Boolean readonlyValue) +124
   Composite.Core.Implementation.SitemapNavigatorImplementation.GetPageNodeById(Guid id) +73
   System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +300
   System.Linq.WhereEnumerableIterator`1.MoveNext() +195
   System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +246
   ASP.default_aspx.Page_Init(Object sender, EventArgs e) in c:\inetpub\wwwroot\c3\default.aspx:51
   System.Web.UI.Page.OnInit(EventArgs e) +101
   System.Web.UI.Control.InitRecursive(Control namingContainer) +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2097
in default.aspx
Line 50:                 var sitemapNavigator = new SitemapNavigator(conn);
Line 51:                 PageNode homePageNode = sitemapNavigator.HomePageNodes.FirstOrDefault(); 
Line 52: 
Line 53:                 if (homePageNode != null)

Viewing all articles
Browse latest Browse all 2540

Trending Articles