May 10, 2016
Jun 03, 2016
CMS Core
Closed, Fixed and tested
Steps to reproduce
myList.PageLinkProperty = null;
|
myList.PageLink = PageReference.StartPage;
|
myList.DataBind();
|
6. Add a new property to the web.config under profile/properties.
<add name="SubscriptionInfo" type="EPiServer.Personalization.SubscriptionInfo, EPiServer"/>
Surfing this page gives an error:
Server Error in '/' Application.
Unable to cast object of type 'EPiServer.Core.ContentReference' to type 'EPiServer.Core.PageReference'.
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.
[InvalidCastException: Unable to cast object of type 'EPiServer.Core.ContentReference' to type 'EPiServer.Core.PageReference'.]
EPiServer.DataAbstraction.SubscriptionService.GetSubscriptionPages(PageReference root) +254
EPiServer.Web.WebControls.SubscriptionList.PopulatePages(PageDataCollection pages) +177
EPiServer.Web.WebControls.PageControlBase.GetPages() +61
EPiServer.Web.WebControls.SubscriptionList.CreateChildControls() +73