Validation of properties implemented as interfaces

Found in

EPiServer.CMS.Core 9.7.2

Fixed in

EPiServer.CMS.Core 10.0.1


Mar 15, 2016


Oct 27, 2016


CMS Core


Closed, Fixed and tested


  1. Add interface:

       public interface INewsPage
            PageListBlock NewsList { get; set; }

  2. Add the property PageListBlock on a page but do not mark it as virtual.

     public class NewsPage : StandardPage, INewsPage
                GroupName = SystemTabNames.Content,
                Order = 305)]
            public PageListBlock NewsList { get; set; }

Expected: An exception that "virtual" is missing.
Actual: Looking at news page, the news list is empty.

Breaking changes note
Validation of content type properties has been changed so properties are checked that PropertyInfo.IsFinal is false. See
If a property was not supposed to be a content type property (persisted in CMS database) but now throws a validation exception, decorate the property with the [Ignore] attribute.