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...Upgrading DNN P...Upgrading DNN P..."Sys.InvalidOperationException: A control is already associated with the element" following upgrade."Sys.InvalidOperationException: A control is already associated with the element" following upgrade.
Previous
 
Next
New Post
1/5/2012 6:08 AM
 

Following an upgrade of DotNetNuke from 05.02.02 to 05.06.06 we now get the following error in all browsers when posting back on a module where partial rendering is enabled.

Sys.InvalidOperationException: A control is already associated with the element.

This error occurs on all modules even standard ones, e.g. File Manager (assuming we change the File Manager to partial rendering). This occurs even when using the standard Skin. In order to confirm this wasn't an isolated incident we've upgrade three separate sites from 05.02.02 to 05.06.06 and all sites exhibit the same problem. All our current sites exclusively currently use 05.02.02 so we are eager to start to upgrade these but can't until we resolve this issue. 

If I install 05.06.06 from scratch then all is well so the problem is related to the upgrade. I've checked the web.config on the (working) new install and the non-working upgrade and they are pretty much the same (other than db connection info etc.) so I don't think this is the problem. 

The code which errors on the upgraded sites is the following bolded/underlined text below:

Sys.UI.Control = function Sys$UI$Control(element) {
    /// <summary locid="M:J#Sys.UI.Control.#ctor" />
    /// <param name="element" domElement="true"></param>
    var e = Function._validateParams(arguments, [
        {name: "element", domElement: true}
    ]);
    if (e) throw e;
    if (typeof(element.control) != 'undefined') throw Error.invalidOperation(Sys.Res.controlAlreadyDefined);
    Sys.UI.Control.initializeBase(this);
    this._element = element;
    element.control = this;
}

The element variables which error are the following. If there are no HTML modules, then only the first one errors.

"dnn_ctr370_dnnACTIONS_ctldnnACTIONS"
"dnn_ctr487_HtmlModule_lblContent"

Incidentally there was an additional error for "dnn_dnnNAV_ctldnnNAV", but I managed to get rid of this by changing the menu provider in the skin from DNNMenuNavigationProvider to DDRMenuNavigationProvider. However, making the same change for the action menu in the containers did not get rid of the dnnACTIONS error above.

Any help on this will be gratefully received as this is preventing us upgrading our sites currently.

(Please don't ask why we're not directly upgrading to DNN 6! The reason is problems with the Ajax Control Toolkit which I'm going to add an other post on).

 
New Post
1/8/2012 4:52 AM
 

I've actually confirmed there are JavaScript errors with any upgrade of DotNetNuke past 05.06.02. As soon as you upgrade to 06.06.03 you start to get errors with post-backs when partial rendering is enabled. In version 05.06.03, the error is as follows rather then the 05.06.06 error displayed in the previous post.

Line: 4723
Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

If someone from DotNetNuke could confirm whether this is a know issue with the upgrade path or not, that would be useful.

 
New Post
1/13/2012 5:08 AM
 
I am having the same issue. Were you able to resolve this or did you hear back from the DNN team?
 
New Post
1/13/2012 5:54 AM
 
I logged it as a bug in the bug tracking tool, but otherwise I haven't heard back.

We spent a long time trying to work round this issue. In the end, we've just settled on upgrading to 05.05.01 which is the last stable version you seem to be able to successfully upgrade to without the introduction of bugs. It has the telerik editor, internationalisation support and the new control panel, so it's should be OK for most requirements.
 
New Post
1/13/2012 5:31 PM
 
Thanks for posting this Karl. I too have spent countless hours trying to determine if it was related to code I've written, but came to the same conclusion you did.

Given the huge performance problems we've seen with dnn 6, staying with v5 was our best choice, but these errors are causing my customers to look elsewhere, which is very discouraging. Hopefully, this problem will be addressed asap...

We also noticed that these errors were occuring when writing settings modules as well, regardless of the partial rendering setting for the control definition.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P..."Sys.InvalidOperationException: A control is already associated with the element" following upgrade."Sys.InvalidOperationException: A control is already associated with the element" following upgrade.


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