Hello,
I run into the problems after I've made update of the Infragistics components to the latest version.
If I have two or more WebDialogs on the page, I have such bug:
Invalid JSON primitive: ,[[[[[null,"Edit",null,null]],[[[[[]],[],[]],[{},[]],null],[[[[]],[],[]],[{},[]],null],[[[[]],[],[]],[{},[]],null]],[]],[{},[]],null],[[[[null,null,null,null,null]],[],[]],[{},[]],null]],[]],[{},[]],null]. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: Invalid JSON primitive: ,[[[[[null,"Edit",null,null]],[[[[[]],[],[]],[{},[]],null],[[[[]],[],[]],[{},[]],null],[[[[]],[],[]],[{},[]],null]],[]],[{},[]],null],[[[[null,null,null,null,null]],[],[]],[{},[]],null]],[]],[{},[]],null].Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [ArgumentException: Invalid JSON primitive: ,[[[[[null,"Edit",null,null]],[[[[[]],[],[]],[{},[]],null],[[[[]],[],[]],[{},[]],null],[[[[]],[],[]],[{},[]],null]],[]],[{},[]],null],[[[[null,null,null,null,null]],[],[]],[{},[]],null]],[]],[{},[]],null].] System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) +542622 System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) +37 System.Web.Script.Serialization.JavaScriptSerializer.DeserializeObject(String input) +13 Infragistics.Web.UI.Framework.RunBot.HandleOnInit(HttpContext context) +232 Infragistics.Web.UI.Framework.ControlMain.OnInit(EventArgs e) +158 System.Web.UI.Control.InitRecursive(Control namingContainer) +333 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
Also I've found that if <asp:ScriptManager ID="ScriptManager1" runat="server" ></asp:ScriptManager> ScriptMode is not "Release", than we have the MS Script error for the id of the second dialog// Name: MicrosoftAjax.debug.js// Assembly: System.Web.Extensions// Version: 3.5.0.0// FileVersion: 3.5.30729.196//-----------------------------------------------------------------------// Copyright (C) Microsoft Corporation. All rights reserved.//-----------------------------------------------------------------------// MicrosoftAjax.js// Microsoft AJAX Framework.....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;}id="EditDialog"
If we have just the one dialog on the page, we have no problem.
Hi,
If you may build a simple application (probably only aspx file), which can be used to reproduce that issue, then please submit a report at http://es.infragistics.com/support/ask-for-help.aspx
You also may use "Options" to attach a zipped file, though, report is preferrable.
Hi, sorry to bump up an old thread, but I am seeing the same problem as well with the webDialog while trying to add it to my controls collection. happens only when i have more than one instance of the same control. System.ArgumentException: Invalid JSON primitive: ,|0|3,0,197px,26px,800px,530px,0||.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.DeserializeObject(String input)at Infragistics.Web.UI.Framework.RunBot.HandleOnInit(HttpContext context)at Infragistics.Web.UI.Framework.ControlMain.OnInit(EventArgs e)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)Was a fix issued for this? thanks!
Hi John,
Thank you for information.
I tested dialog in page with enablePartialRendering=false and reproduced exception. It happened on intial load and it was not related to dialog or multiple controls, but to a statement in base class of all Infragistics.Web.UI controls. It uses theForm global variable to attach submit events. That variable suppossed to be generated by server and set to the current form of page. But I found, that it is not generated if partial rendering is disabled.It is rather strange that similar problem was never reported or picked up by internal tests.
It will be fixed in coming service releases.
For now you may get around by adding following javascript block at the end of page:
<body> ... <script type="text/javascript"> if (!window.theForm) window.theForm = window.document.forms.form1 || window.document.forms[0]; </script></body>
Viktor,Thanks for clearing this up.I am attempting the workaround within my aspx page and it doesnt help. I have tried to set the theForm variable to as in the snippet you provided me and it hasnt cleared the bug. Is there another workaround? Thanks,John
If work around with theForm did not help, then there is probably some other issue in you application and service release will not help neither.I need a sample.
I do not know exact date for next service release. I guess it will be in range of next 3-4 weeks.
Sorry bout the late reply. .This is strange because if i remove that exact same attribute it works just fine for me. Anyways, i will work on replicating this sometime soon and we can then find out the exact cause. THanks for teh estimated time.
Victor,I completely forgot to reply to this post. My mistake. Turned out this was a mistake in the javascript i was using to render my control that used a webdialogwindow.Its been corrected and it works fine for me now.
Thanks a lot!