5.0 to 5.1 - Custom Module no longer functional

Posted by Community Admin on 04-Aug-2018 23:30

5.0 to 5.1 - Custom Module no longer functional

All Replies

Posted by Community Admin on 26-Jul-2012 00:00

We had developed a simple custom module for our Sitefinity 5.0 website in a separate solution leveraging the existing 'Products Module' tutorial located at creating-products-moduleThis was working perfectly in 5.0 -- Both the CMS administrative section and front-end views were functional and had no errors.

Since choosing to upgrade to 5.1, and following Telerik's suggested guide to upgrading, this custom module is completely broken.  The module shows in the back-end System > Modules listing as 'active', but it is not available from the Modules menu so there is no way for the CMS administrators to access it.  The System.Config has an entry for the module as being installed as version (which is correct) and there is no "errorMessage" attribute on the corresponding <module> XML element.

Furthermore, the OpenAccess API is broken for the front-end view.  When using the custom 'Manager' class to query items from the database is breaks when evaluating the following LINQ-expression:

var manager = new CustomModuleManager();
var items = manager.Where(x => x.IsActive).ToList();

The exception details are:

Identifier 'IsActive' is not a parameter or variable or field of 'CustomModule.CustomItem'. If 'IsActive' is a property please add the FieldAlias or Storage attribute to it or declare it as a field's alias.

The "Breaking Changes" documentation states nothing about custom modules not functioning correctly in 5.1.  Is there any logical reason that custom modules would be completely non-functional in this version of the CMS?  What am I doing incorrect during this upgrade?  Any help from members or support staff would be much appreciated.

I can provide source code at request.

This thread is closed