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...Error expanding tree in File Manager after upgrade from DNN 5.1.0Error expanding tree in File Manager after upgrade from DNN 5.1.0
Previous
 
Next
New Post
12/16/2011 2:01 PM
 

I have a site on DNN 5.1.0.  After upgrading to any version between 5.1.2 and 6.0.2 (I've tried 5.1.2, 5.1.4, 5.2.3, 5.4.4, 5.6.6, and 6.0.2), I get an error when expanding the file tree in the File Manager (i.e. clicking the "plus" icon next to the Portal Root folder).  Chrome is logging the following JavaScript error: 

Uncaught Sys.ArgumentException: Sys.ArgumentException: Cannot deserialize. The data does not correspond to valid JSON.
Parameter name: data
    Sys.Serialization.JavaScriptSerializer.deserialize                                                         ScriptResource.axd:5
    dnn.extend.evalJSON                                                                                                  dnn.js:266
    dnn.controls.DNNTree.callBackSuccess                                                                       dnn.controls.dnntree.js:104
    dnn.xmlhttp.XmlHttpRequest.complete                                                                       dnn.xmlhttp.js:255
    (anonymous function)                                                                                                  Default.aspx:1
    onload                                                                                                                          Default.aspx:2

After investigating, it looks like the callback that gets made to retrieve the child nodes includes {"d":[...]} wrapped around the expected "nodes" array, and this is breaking the deserializing (which adds curly braces around the result).

The "d" wrapping JSON would seem to point to .NET 3.5 issues, but the site's already running as .NET 3.5 (perhaps it's missing an important web.config change or something?)

However, this issue goes away after upgrading to DNN 6.1.2.  Ideally, I'd like to be able to just worry about upgrading to 5.6.6 right now, and tackle the DNN 6 upgrade later.

Also strange, upgrading to DNN 5.1.1 doesn't cause an issue, just 5.1.2 and later.

Has anyone run into anything similar that could point to a possible path to getting unstuck from this?  Thanks for any help you can provide.


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
12/16/2011 2:03 PM
 
Just discovered that the result coming back in DNN 6.1.2 (where it's working again) still has the {d:...} wrapping. Apparently some processing of the callback is stripping that before it gets to the tree control's callBackSuccess function...

Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
12/19/2011 1:56 PM
 

Looks like I just had to do a hard-refresh (Ctrl+F5) to be able to see changes to the JavaScript that was being used to load the tree.  It started working in DNN 6.1.2 because the Client Resource Manager started adding a version number to the querystring to cache-bust the script.


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Error expanding tree in File Manager after upgrade from DNN 5.1.0Error expanding tree in File Manager after upgrade from DNN 5.1.0


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