Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DNN 5 - DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() throws NullReferenceException

Posting as a reference

when redirecting to custom controls in custom DNN 5 module, I get

InnerException: Object reference not set to an instance of an object.
Method: DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() 
like image 276
roman m Avatar asked Mar 06 '09 10:03

roman m


1 Answers

The problem was resolved by making sure that ALL custom controls inherit from PortalModuleBase

like image 112
roman m Avatar answered Sep 26 '22 15:09

roman m