Invalid Json Primitive

6 posts, 0 answers
  1. MUNISH
    MUNISH avatar
    2 posts
    Member since:
    Aug 2012

    Posted 30 Jan 2014 Link to this post

    Hello telerik,

    I am getting an error on every page wherever i have used rad controls.In fact my project has completely stopped working due to these errors:
    Before it was working fine. The error is:
    ​Sys.WebForms.PageRequestManagerServerErrorException:
    Sys.WebForms.PageRequestManagerServerErrorException: Invalid JSON
    primitive:
    {"enabled":true,"emptyMessage":"","validationText":"","valueAsString":"","minValue":0,"maxValue":70368744177664,"lastSetTextBoxValue":""}.

    Please tell me the  solution for this so that i can fix it and work on my project asap 
  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 04 Feb 2014 Link to this post

    Hi,

    In order for us to pinpoint the reason for the error we would need some additional information. Would you elaborate more on your scenario? Do you have Ajax enabled on the page? If yes - would you disable the Ajax and check if the error will persist.

    Additionally if there is an AjaxToolkit  script manager on the page try replacing it with RadAjaxScriptManager and see if it makes a difference.

    If the error persists I would ask you to share your full markup with the code-behind so we could try to replicate the issue locally. This would allow us to better understand your scenario and provide an appropriate solution.

    Regards,
    Viktor Tachev
    Telerik
    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 UI for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Varun
    Varun  avatar
    4 posts
    Member since:
    Mar 2011

    Posted 21 Aug 2014 Link to this post

    I also getting same issue when I upgrade the telerik DLLs to 2014 Q2.
    Here is Exception...

    Invalid JSON primitive: {"enabled":true,"emptyMessage":"","validationText":"xxx","valueAsString":"xxx","lastSetTextBoxValue":"xxx"}.

    Stack Trace:

       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 Telerik.Web.UI.RadInputControl.LoadPostData(String postDataKey, NameValueCollection postCollection)
       at Telerik.Web.UI.RadWebControl.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)

    I have ajaxtoolkit in my page and I am asp ScriptmanagerProxy and also ajaxified the page using update panels.

    So Please help me in finding the solution...





  5. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 26 Aug 2014 Link to this post

    Hi Varun,

    My colleague has answered your query in the support ticket you have posted. Please try to follow the suggestions provided there and you should be able to achieve the behavior you are looking for. 

    Regards,
    Viktor Tachev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Michael
    Michael avatar
    4 posts
    Member since:
    Aug 2008

    Posted 03 Feb 2015 Link to this post

    We have exactly the same issue as above when upgrading the telerik DLLS to 2014 Q2, please can you post the answer.
  7. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 06 Feb 2015 Link to this post

    Hello Michael,

    In the specific scenario for Varun the issue was caused by specific RadAjaxManager settings. A RadDock control was added to the UpdatedControls collection. If you have similar scenario you can try one of the following approaches.

    • wrap RadDock in a Panel control and add the Panel to the UpdatedControls collection
    • place RadDock in a RadDockZone

    However, the issue could be caused by various reasons. It would be hard to pinpoint what is the cause in your scenario without investigating the matter further. Would you share your markup code with rhe relevant code behind? This will enable us to examine it and look for a possible cause.

    Additionally, try to disable AJAX by setting the EnableAjax property of RadAjaxManager to false. Check if there is a server-side error thrown after this.


    Regards,
    Viktor Tachev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017