Jul 12, 2016
Aug 26, 2016
CMS Core
Closed, Fixed and tested
Steps to reproduce
1. Enable these dynamic properties: applicationSettings operationCompatibility="DynamicProperties"
2. In admin mode, create a dynamic property of the type "Page Type".
3. Go to a page.
4. Click All properties->Tools->Dynamic properties.
Expected
See dynamic properties.
Actual
Get error message:
Unable to cast object of type 'EPiServer.DataAbstraction.ContentType' to type 'EPiServer.DataAbstraction.PageType'.
[InvalidCastException: Unable to cast object of type 'EPiServer.DataAbstraction.ContentType' to type 'EPiServer.DataAbstraction.PageType'.]
EPiServer.Web.PropertyControls.PropertyPageTypeControl.SetupEditControls() +232
EPiServer.Web.PropertyControls.PropertySelectControlBase.CreateEditControls() +273
EPiServer.Web.PropertyControls.PropertyDataControl.CreateChildControls() +65
System.Web.UI.Control.EnsureChildControls() +92
EPiServer.Web.PropertyControls.PropertyDataControl.SetupControl() +31
EPiServer.Web.WebControls.PropertyDataCollectionControl.SetupPropertyControls(Control control) +188
EPiServer.Web.WebControls.PropertyDataCollectionControl.SetupPropertyControls(Control control) +202
EPiServer.Web.WebControls.PropertyDataCollectionControl.SetupPropertyControls(Control control) +202
EPiServer.Web.WebControls.PropertyDataCollectionControl.CreateChildControls() +120
System.Web.UI.Control.EnsureChildControls() +92
EPiServer.Web.WebControls.PropertyDataCollectionControl.get_Controls() +38
EPiServer.UI.WebControls.PropertyDataForm.SetupPropertyControls(Control control) +69
EPiServer.UI.WebControls.PropertyDataForm.SetupPropertyControls(Control control) +202
EPiServer.UI.WebControls.PropertyDataForm.SetupPropertyControls(Control control) +202
EPiServer.UI.WebControls.PropertyDataForm.SetupPropertyControls(Control control) +202
EPiServer.UI.WebControls.PropertyDataForm.CreateChildControls() +1924
System.Web.UI.Control.EnsureChildControls() +92
EPiServer.UI.WebControls.PropertyDataForm.OnDataBinding(EventArgs e) +36
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +150
System.Web.UI.Control.DataBind() +17
EPiServer.UI.Edit.EditDynProp.SetupForm() +91
EPiServer.UI.Edit.EditDynProp.OnInit(EventArgs e) +45
System.Web.UI.Control.InitRecursive(Control namingContainer) +139
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1580
Unable to cast object of type 'EPiServer.DataAbstraction.ContentType' to type 'EPiServer.DataAbstraction.PageType'.