This is a migrated thread and some comments may be shown as answers.

Dock Error

1 Answer 42 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 13 May 2013, 01:41 PM
We are getting this error and are not sure what is causing it.  Any ideas? 

We are using version 2013.1.403.40 for Telerik.Web.UI.DLL.


System.ArgumentException: Invalid object passed in, ':' or '}' expected. (130): {"Top":0,"Left":0,"DockZoneID":"DashBoardZone2","Collapsed":false,"Pinned":false,"Resizable":false,"Closed":false,"Width":"300px",
   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 Telerik.Web.UI.RadWebControl.LoadPostData(String postDataKey, NameValueCollection postCollection)
   at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
Time: 5/9/2013 4:03:36 PM
 
Source: System.Web.Extensions

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 16 May 2013, 10:40 AM
Hello Steven,

It appears that the problem stems from incorrectly constructed dock state. The dock settings are stored in JSON format and in your case the state is not defined correctly, nevertheless I cannot determine what is causing the problem from your information. Please check the following:

 - Are you modifying the dock state manually? If so, ensure that the format of the dock state is correct after the changes. 
 - In case you are storing the dock state in a cookie and the limit of this cookie (4MB) is reached, part of the JSON string may be cut off.
 - If the dock state is stored in a data-base table, ensure that the column size is enough to hold the full state of the docks.

I hope this helps. Feel free to contact us again if you encounter more difficulties.

Regards,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Dock
Asked by
Steven
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or