New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the Community Exchange, where community members ask and answer questions about DNN. To get started, just start typing your question below and either select one of the suggested questions or ask a new question of your own.

Error occurred when request service 'AddModule'

Return to previous page

  • 5/25/2018
  • 2687 Views

Question:

Jeff Frick 6 years ago

Hello, I get this on a regular basis when trying to add new custom modules with DNN 9. In Chrome Dev tools I see:
/API/internalservices/controlbar/AddModule which links to "The requested resource does not support http method 'GET'" and in the server logs I see...
DotNetNuke.Web.InternalServices.ControlBarController - System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Modules.ModuleController.AddModule(ModuleInfo module) at DotNetNuke.Web.InternalServices.ControlBarController.DoAddNewModule(String title, Int32 desktopModuleId, String paneName, Int32 position, Int32 permissionType, String align) at DotNetNuke.Web.InternalServices.ControlBarController.AddModule(AddModuleDTO dto)

Are there any guidelines as to what custom modules must contain? Sometimes if I use the "Create Package" then use the "Install Extension" method, the same module will work. But the one I'm currently working with will not. Thanks.


Error occurred when request service 'AddModule'

Jeff Frick
Jeff Frick 6 years ago
Add an Answer

Answers

Sign In to Participate
Or register to become a member