I moved products module from the Samples folder to my project folder and updated the project file and references so it will compile. Updated the app.config of the products module to point to the correct database. Also added a project reference in my webproject to products module project. the whole solution builds without any issues and the module assembly is copied over to the bin folder of the website.
I have modified the SystemConfig.config to have a line to register the module in Sitefinity. I simply copied that line from the sample webproject and pasted it over in my website's SystemConfig.con file.
Now what's happenning is it throws an exception when it executes the ProductsManager.GetManager(string providerName) method and the exception is TargetInvocationException
and the message is as follows. providerName gets passed is empty. I continued my debugging session after the exception and the website loaded but in administration Products is not appearing under Content menu.
Exception Message: Persistence-capable-superclass 'Telerik.Sitefinity.GenericContent.Model.Content' not declared in meta data. --> ProductCatalogSample, Version=1.0.4036.18724, Culture=neutral, PublicKeyToken=null/namespace[ProductCatalogSample.Model]/class[ProductCatalogSample.Model.ProductItem]
This is where the exception occurs:
Appriciate if someone can help me to get this sample module code working.