More in this section
Forums / Sitefinity SDK / Duplicate metadata entries found?

Duplicate metadata entries found?

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 1 answered
  1. Augus
    Augus avatar
    34 posts
    29 Mar 2011
    04 May 2011
    Link to this post
    hi all, i have two model in my module one let say one is category an the other is product. so it has parent and child relationship. i also have two FluentMetadatasource class. but when i compile it give me error

    Error    10    Duplicated Metadata entries found for type Telerik.Sitefinity.Security.Model.PermissionsInheritanceMap. Please use only one way of mapping.    C:\Program Files (x86)\Telerik\Sitefinity 4.1\Projects\Project4.1\Namespace.Module\obj\Debug\Namespace.Module.dll

    when i remove on of the FluentMetadatasource class it build fine. so what exactly this class do? is it fine just one class? sorry for such a newbie question.
  2. George
    George avatar
    28 posts
    24 Sep 2012
    09 May 2011
    Link to this post
    Hello Augus,

    It is fine to have just one class, until it maps all the persistent classes.

    The OpenAccess enhancer looks up for all inheritors of the FluentMetadataSource class in the assembly, currently being enhanced, initializes them and then goes through them in order to get the collections of mappings. Using the FluentMetadataSource Class article gets into details on this.

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. hkdave95
    hkdave95 avatar
    1 posts
    08 Nov 2006
    18 Nov 2015 in reply to George
    Link to this post
    The link in the previous post is broken.
3 posts, 1 answered