PropertyListBase with page reference import throws exception

Vote:
 

Hi guys,

We have a PropertyListBase 

[PropertyDefinitionTypePlugIn]
    public class PagesListProperty : PropertyListBase<ApplicationPage>
    {
    }

and Application page as 

 public class ApplicationPage
    {
        public PageReference Page { get; set; }

        public string Name { get; set; }
    }

 

This property works fine and we get a nice interface in edit mode, where we can enter multiple items and each item has a page reference and a string.

We have exported this page and trying to import in a new env, but getting the following error Unable to cast object of type 'EPiServer.Core.UnresolvedContentReference' to type 'EPiServer.Core.PageReference'.] & the import fails.

All the pages that are selected within this property are part of the export package. 

Anyone know how can I make this work?

Thanks

#263156
Edited, Sep 15, 2021 9:55
Vote:
 

I think ApplicationPage is missing inherited Episerver type, tyically ContentData

#263276
Sep 17, 2021 6:18
* 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.