DotNetNuke call to wcf service to GetModule(ModuleId) fails - Objects reference null exception -


i working on dotnetnuke version 7.4. in setting.ascx client side code of module i'm creating, have jquery ajax call wcf service supposed module information moduleid pass method of service.

when creates new instance of modulecotroller, factory property inside modulecontroller null. trying getmodule fails following error: "object reference not set instance of object"

dotnetnuke.entities.modules.modulecontroller modulecontroller = new dotnetnuke.entities.modules.modulecontroller();  if (modulecontroller != null) {     var requestedmodule = modulecontroller.getmodule(moduleid); } 

i have added nesseary config info required dotnetnuke dlls. can please guide me i'm missing.

i don't quite understand trying do, want use modulecontroller factory return instance this:

var modinfo = dotnetnuke.entities.modules.modulecontroller.instance.getmodule(moduleid, tabid, false); 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -