Invalid JSON primitive on Tab click

2 posts, 0 answers
  1. Krishna Samaga
    Krishna Samaga avatar
    15 posts
    Member since:
    Oct 2009

    Posted 21 Jun 2010 Link to this post


    I have a telerik RadTabStrip inside ajax UpdatePanel in my web page and when i navigate between the tabs, i get this wiered error "Invalid JSON primitive". Below is the stack trace of this error.

    Type System.ArgumentException
    Source System.Web.Extensions
    Method DeserializePrimitiveObject
    Message Invalid JSON primitive: .
    Trace at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject()
    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)
    at Telerik.Web.UI.RadMultiPage.LoadClientState(String state)
    at Telerik.Web.UI.RadMultiPage.System.Web.UI.IPostBackDataHandler.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)

    Please kindly help to resolve this issue ASAP since its a production issue now.

    Krishna Samaga B.
  2. T. Tsonev
    T. Tsonev avatar
    2834 posts

    Posted 24 Jun 2010 Link to this post

    Hello Krishna,

    This error is most likely caused by malformed data in the POST request. The control failed to deserialize its client state as a result. You should check if your page passes XHTML/HTML validation using either the W3C Validator or a Firefox plug-in like this one.

    If your page doesn't have major issues like unclosed tags, etc. we'll need to see a live URL. Alternatively, you can record of the browsing session that reproduces the error using FiddlerCap. Make sure you're not accessing the site through http://localhost, but by using the computer name instead, otherwise it won't capture the traffic.

    I hope this helps.

    Tsvetomir Tsonev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top