Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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 DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Module load problem for ASCX control with AJAX Module load problem for ASCX control with AJAX
Previous
 
Next
New Post
4/26/2010 1:51 PM
 

Hi there

I'm having such a nightmare trying to get AJAX to work on a DNN 5.02 web site!

I have an ASCX control packaged as a module, but when it is added to a page, the module cannot load, instead giving a ModuleLoadException:

Object reference not set to an instance of an object. at DotNetNuke.UI.Containers.ActionBase.get_ActionRoot()

The module attempts to run a ToolkitScriptManager from the AjaxControlToolkit v 3.0.20820.16598, but even without any further Ajax controls in the module, the error is generated. I do have NET 3.5 SP1 installed, and the following entry in the DNN web.config <assemblies> section:

<add assembly="AjaxControlToolkit, Version=3.0.20820.16598, Culture=neutral, PublicKeyToken=28F01B0E84B6D53E"/>

which corresponds to the dll installed in the GAC, and I also have a reference to this GAC dll in my VS solution for the control. Additionally, I have tried several suggestions such as running

DotNetNuke.Framework.AJAX.RegisterScriptManager()

in Page_Init and/or Page_Load in the control's code behind, but nothing seems to make any difference to the appearance of the error!

Is there any particular sort of issue that is typically associated with this error? What is DNN trying to tell me about the container - presumably it is referring to the module's container? I'm really stuck about the best way to approach the problem, it just seems like Ajax is a terrible mess as far as DNN is concerned, so can anybody point me in the right direction. What should I have in the web.config if anything, and do I need to put my script manager in a different location?

Thanks very much for your advice.

 


           

 
New Post
4/27/2010 11:58 AM
 

PS I'm now pretty sure that it is being caused by the addition of the ToolkitScriptManager control from the Ajax Control Toolkit 3.5, which I thought I needed to include in a module in order to use other Ajax controls. But am I mistaken in this, does DNN have its own ScriptManager that would be conflicting with the ToolkitScriptManager?

 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Module load problem for ASCX control with AJAX Module load problem for ASCX control with AJAX


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out