Hi, I have a custom module I need to be searchable from DNN search. So I have added a Controller class to my module that extends ModuleSearchBase with GetModifiedSearchDocuments method. I added the namespace in the module settings. However since I added the namespace the module crashes and throws this exception the log: Value cannot be null. Parameter name: type InnerStackTrace: in System.Activator.CreateInstance(Type type, Boolean nonPublic) in System.Activator.CreateInstance(Type type) in DotNetNuke.UI.Skins.Pane.IsVesionableModule(ModuleInfo moduleInfo) in DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module) in DotNetNuke.UI.Skins.Skin.InjectModule(Pane pane, ModuleInfo module)
this is my controller class:
public class ListaController : ModuleSearchBase { public ListaController() { } public override IList GetModifiedSearchDocuments(ModuleInfo modInfo, DateTime beginDate) { var searchDocuments = new List(); List docs = GetDocs();
foreach (var doc in docs) { searchDocuments.Add(new SearchDocument { Title = doc.Title, Body = doc.Body, ... and so on ... }); }
return searchDocuments; } }
I think the problem is in the configuration side rather than code side.
DNN version is 9.4.0.
Can you help me? Thanks in advance!
Things have come full circle for Hammond! 🤣
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.