Running products catalog sample from teh SDK gives an error
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
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
Hello
Am running the sample right out of the box, haven't changed anything.
-Thanks
Richa
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