1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / ProductsFluentMetadataSource still has this bug

ProductsFluentMetadataSource still has this bug

4 posts, 0 answered
  1. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    22 Aug 2011
    Link to this post
    Just to let you know that when creating a new Sitefinity Module inside Visual Studio, using the template, I get this error in the 'ProductsFluentMetadataSource' class:

    Error    1    'Telerik.Sitefinity.Modules.GenericContent.Data.ContentBaseMetadataSource' does not contain a constructor that takes 0 arguments    D:\Projects\Products.Modules.Products\Model\ProductsFluentMetadataSource.cs    12    15    Consenza.Modules.Products

    I always solve this by passing 'null' into the constructor:
    public ProductsFluentMetadataSource()
               : base(null) { }

    Regards,
    Daniel

  2. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    18 Sep 2017
    25 Aug 2011
    Link to this post
    Hi Daniel,

    I have tested it with the plugin for Sitefinity module available with Sitefinity 4.2 SDK and the constructor was properly inserted
    public ProductsFluentMetadataSource()
     
    : base()
     
    { }
    Maybe your plugin was not updated with the new SDK installation.

    Best wishes,
    Stanislav Velikov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    25 Aug 2011
    Link to this post
    Hi Stanislav,

    Yes, this is what the 4.2 SDK generates:
    public ProductsFluentMetadataSource()
      
    : base()
      
    { }

    But that code doesn't compile? I need to change it to the code below to successfully build my project.

    public ProductsFluentMetadataSource()
      
    : base(null)
      
    { }

    Regards,
    Daniel
  4. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    18 Sep 2017
    25 Aug 2011
    Link to this post
    Hi Daniel,

    Excuse me for misunderstanding. Yes you are right this should be changed. I have logged a task and we will correct it.

    Updated your Telerik points!

    All the best,
    Stanislav Velikov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

4 posts, 0 answered