Running products catalog sample from teh SDK gives an error

Posted by Community Admin on 03-Aug-2018 18:55

Running products catalog sample from teh SDK gives an error

All Replies

Posted by Community Admin on 04-May-2011 00:00

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

Posted by Community Admin on 10-May-2011 00:00

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

Posted by Community Admin on 10-May-2011 00:00

Hello

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

-Thanks
Richa

Posted by Community Admin on 13-May-2011 00:00

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

This thread is closed