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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDNNTree: Exception has been thrown by the target of an invocationDNNTree: Exception has been thrown by the target of an invocation
Previous
 
Next
New Post
1/17/2012 12:02 PM
 

I'm building a custom module with the DNNTree control inside of a DataGrid EditTemplate...

I've tried several things... at first I had the ToolTips setup and a 100% preload but with this issue, I've made it expand and add more treenodes upon NodeClick (Populate on demand isn't working for some reason...)

If the number of nodes and branches stays small if works, but if there are too many I get this error:

AssemblyVersion: 6.1.1
PortalID: 0
PortalName: My Website
UserID: 1
UserName: host
ActiveTabID: 83
ActiveTabName: <scrubbed>
RawURL: /dotnetnuke/<scrubbed>/tabid/83/ctl/Link/mid/397/DID/1/Default.aspx
AbsoluteURL: /DotNetNuke/Default.aspx
AbsoluteURLReferrer: http://localhost/dotnetnuke/<scrubbed>/tabid/83/ctl/Link/mid/397/DID/1/Default.aspx
UserAgent
: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: c83d464d-8c6b-4f5a-a12a-0dc01fe8d079
InnerException: Exception has been thrown by the target of an invocation.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Invalid object passed in, ':' or '}' expected. (2294): { id:"dnn_ctr397_LinkDocument_grdDocLink_CatalogueEntries_0",nodes:[{ imgIdx:"1", ca:"0", url:" ", key:"0", txt:"Top of Catalogue", id:"dnn_ctr397_LinkDocument_grdDocLink_CatalogueEntries_0_17683682", text:"Top of Catalogue", js:"", target:"", toolTip:"", enabled:"1", css:"", cssSel:"", cssHover:"", cssIcon:"", hasNodes:"1", hasPendingNodes:"0", image:"", level:"0", isBreak:"0", hover:"0", expanded:"1", selected:"", clickAction:"0",nodes:[{ imgIdx:"1", ca:"0", key:"2", hasNodes:"1", txt:"State Legal Materials", id:"_65980077", selected:"", expanded:"1",nodes:[{ imgIdx:"1", ca:"0", key:"4", hasNodes:"1", txt:"Oklahoma", id:"_65980077_36427378", selected:"", expanded:"1",nodes:[{ imgIdx:"1", ca:"0", key:"8", hasNodes:"1", txt:"Oklahoma Statutes Citationized", id:"_65980077_36427378_2808717", selected:"1",nodes:[]},{ imgIdx:"1", ca:"0", key:"9", hasNodes:"1", txt:"Oklahoma Session Laws", id:"_65980077_36427378_26179505",nodes:[]},{ imgIdx:"1", ca:"0", key:"10", hasNodes:"1", txt:"Oklahoma Constitution", id:"_65980077_36427378_40165142",nodes:[]},{ imgIdx:"1", ca:"0", key:"11", hasNodes:"1", txt:"Oklahoma Cases", id:"_65980077_36427378_32151073",nodes:[]},{ imgIdx:"1", ca:"0", key:"12", hasNodes:"1", txt:"Oklahoma Court Rules", id:"_65980077_36427378_54100084",nodes:[]},{ imgIdx:"1", ca:"0", key:"13", hasNodes:"1", txt:"Oklahoma - Registry of Frivolous or Malicious Appeals", id:"_65980077_36427378_20030709",nodes:[]},{ imgIdx:"1", ca:"0", key:"14", hasNodes:"1", txt:"Oklahoma - Full Faith and Credit of Tribal Courts", id:"_65980077_36427378_11874760",nodes:[]},{ imgIdx:"1", ca:"0", key:"15", hasNodes:"1", txt:"Oklahoma Attorney General's Opinions", id:"_65980077_36427378_22331471",nodes:[]},{ imgIdx:"1", ca:"0", key:"16", hasNodes:"1", txt:"Oklahoma Uniform Jury Instructions", id:"_65980077_36427378_64018736",nodes:[]},{ imgIdx:"1", ca:"0", key:"17", hasNodes:"1", txt:"Oklahoma Fee & Bond Schedules", id:"_65980077_36427378_18135118",nodes:[]},{ imgIdx:"1", ca:"0", key:"18", hasNodes:"1", txt:"Fee and Copy Schedules for the Appellate Courts", id:"_65980077_36427378_59658445",nodes:[]},{ imgIdx:"1", ca:"0", key:"19", hasNodes:"1", txt:"Interest on Judgments", id:"_65980077_36427378_495890",nodes:[]},{ imgIdx:"1", ca:"0", key:"25", hasNodes:"1", txt:"<a href="http://www.oscn.net/static/forms/start.asp">Oklahoma Legal Forms</a> ", id:"_65980077_36427378_40167103",nodes:[]},{ imgIdx:"1", ca:"0", key:"26", hasNodes:"1", txt:"Oklahoma Law Reviews", id:"_65980077_36427378_32309946",nodes:[]}]},{ imgIdx:"1", ca:"0", key:"5", hasNodes:"1", txt:"Wyoming", id:"_65980077_20811245",nodes:[]}]},{ imgIdx:"1", ca:"0", key:"3", hasNodes:"1", txt:"Federal Legal Materials", id:"_33755762",nodes:[]},{ imgIdx:"1", ca:"0", key:"1", hasNodes:"1", txt:"Deleted", id:"_51472881",nodes:[]}]}]} at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeList(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeList(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeList(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeList(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at DotNetNuke.UI.Utilities.Reflection.InvokeGenericMethod[T](Type Type, String MethodName, Object Target, Object[] Args) at DotNetNuke.UI.Utilities.MSAJAX.Deserialize[T](String Data) at DotNetNuke.UI.WebControls.DnnTree.LoadPostedJSON() at DotNetNuke.UI.WebControls.DnnTree.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at System.Web.UI.WebControls.Table.RowControlCollection.Add(Control child) at System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) at System.Web.UI.WebControls.Table.RowControlCollection.AddAt(Int32 index, Control child) at System.Web.UI.WebControls.TableRowCollection.Add(TableRow row) at System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource) at System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.BaseDataList.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.WebControls.BaseDataList.get_Controls() at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:

If the control is outside of the datagrid, it works as expected... I'm not doing anything special in the grid... Has anyone else even seen this error?

 
New Post
1/17/2012 4:11 PM
 
I don't see an edit button for the initial post... This error happens even outside of the DataGrid as well...
 
New Post
1/17/2012 4:42 PM
 
Found the problem... Within the Node.Text I had some HTML ( <a href="blah">blah</a> ) in it... Once I removed this all worked Nicely!
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDNNTree: Exception has been thrown by the target of an invocationDNNTree: Exception has been thrown by the target of an invocation


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