More in this section

Forums / General Discussions / Running products catalog sample from teh SDK gives an error

Running products catalog sample from teh SDK gives an error

4 posts, 0 answered
  1. Richa
    Richa avatar
    69 posts
    Registered:
    04 Jun 2009
    04 May 2011
    Link to this post

    Server Error in '/' Application.

    Parser Error

    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: Resolution of the dependency failed, type = "ProductCatalogSample.ProductsResources", name = "ProductsResources".
    Exception occurred while: while resolving.
    Exception is: InvalidOperationException - The type ResourceDataProvider cannot be constructed. You must configure the container to supply this value.
    -----------------------------------------------
    At the time of the exception, the container was:

     Resolving ProductCatalogSample.ProductsResources,ProductsResources
     Resolving parameter "dataProvider" of constructor ProductCatalogSample.ProductsResources(Telerik.Sitefinity.Localization.Data.ResourceDataProvider dataProvider)
       Resolving Telerik.Sitefinity.Localization.Data.ResourceDataProvider,(none)


    Source Error:

    Line 2:  <%@ Register TagPrefix="sf" Namespace="ProductCatalogSample.Web.UI.Public" Assembly="ProductCatalogSample" %>
    Line 3:  <asp:Content ContentPlaceHolderID="Content" runat="Server">
    Line 4:  <sf:ProductsView ContentViewDisplayMode="Automatic"  runat="server">
    Line 5:  </sf:ProductsView></asp:Content>
    

    Source File: /SFPageService/2274b352-b6e8-4fe8-9f4a-c87593cbb695_SamplesTheme.aspx    Line: 4


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    10 May 2011
    Link to this post
    Hi Richa,

    It seems that the application is not able to properly load the localization resources class. Can you please make sure that this class is implemented as in the sample module?

    Greetings,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Richa
    Richa avatar
    69 posts
    Registered:
    04 Jun 2009
    10 May 2011
    Link to this post
    Hello

    Am running the sample right out of the box, haven't changed anything.

    -Thanks
    Richa
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    13 May 2011
    Link to this post
    Hello Richa,

    Can you please let us know when you have registered the module, did you specify version number? This field should be omitted. Please try the following:

    1) Make sure that your products assembly is located in the bin folder.
    2) Go to ~/App_Data/Sitefinity/Configurations/SystemConfig.config and delete the version attribute for your module.
    3) Make sure that the resource class attribute is properly set (it contains the namespace of the class).
    4) Restart the application.

    Greetings,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
4 posts, 0 answered