This project is read-only.

Mapping error after update to V4

Jan 28, 2016 at 1:22 PM
Finally got round to updating to v4 yesterday but I've run in to a problem when starting up the application now.
"All sub types of User must have a unique sequence of objectClasses."

I register all the mappings via Castle Windsor as below:-
    public void Install(IWindsorContainer container, IConfigurationStore store)
            .UsingFactoryMethod(() =>
                var config = new LdapConfiguration()
                .AddMapping(new UserImageMapping())
                .AddMapping(new UserMapping())
                .AddMapping(new GroupMapping())
                .AddMapping(new UserWithGroupsMapping())
                .AddMapping(new UserPhoneMapping())
                .AddMapping(new UserBaseMapping());

                return config;

            .UsingFactoryMethod(() => new DirectoryContext(container.Resolve<ILdapConfiguration>())).LifestyleTransient());
A mapping class looks like this:-
public class UserMapping : ClassMap<User>
    public override IClassMap PerformMapping(string namingContext = null, string objectCategory = null, bool includeObjectCategory = true,
        IEnumerable<string> objectClasses = null, bool includeObjectClasses = true)
        DistinguishedName(x => x.DistinguishedName);
        Map(x => x.EmployeeId).Named("employeeID");
        Map(x => x.CommonName).Named("cn").ReadOnly();
        Map(x => x.Manager).Named("manager");
        Map(x => x.DirectReports).Named("DirectReports");
        Map(x => x.Email).Named("mail");
        Map(x => x.Company).Named("company");
        Map(x => x.Department).Named("department");
        Map(x => x.EmployeeRef).Named("employeeNumber");

        return this;
The user class is simply:-
public class User : UserBase
    public string CommonName { get; set; }

    public string Email { get; set; }

    public string Company { get; set; }

    public string Department { get; set; }

    public string EmployeeRef { get; set; }
The error occurs during the install of the mappings but I'm rather lost as to what it means. Can anyone help?