Sporadic error using rad button

5 posts, 0 answers
  1. Paul
    Paul avatar
    27 posts
    Member since:
    Mar 2011

    Posted 10 Feb Link to this post

     The way the button is setup, is that there are a couple of rad buttons inside a rad tree list, of which is in a user control, and the usercontrol is inside a rad wizard, and finally the rad wizard is inside an rad ajax panel. I tested the wizard with the buttons locally on my machine and pushed it online and I have no issues. However, I am getting error emails that it seems to be throwing an error on the rad button, with a couple of other users. So far I only received two of the errors in the control. So I am unsure as to why it would be throwing an error. Would any one know why it worked for me but it threw these errors on a couple of users?

    Here are a couple of the stack trace errors:

    System.ArgumentException: Invalid object passed in, ':' or '}' expected. (181): {"text":"Add","value":"","checked":false,"target":"","navigateUrl":"","commandName":"AddTag","commandArgument":"","autoPostBack":true,"selectedToggleStateIndex":0,"validationGroup"% 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.RadButton.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)

     

    Here's another one :

    System.ArgumentException: Unterminated string passed in. (29): {"text":"Add","value":"","che at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeString() at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeMemberName() 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.RadButton.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)
  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1492 posts

    Posted 15 Feb Link to this post

    Hi Paul,

    We are not aware of the mentioned issue and actually you are the first one to report it. Can you tell us whether you are using the latest official version - 2016.1.113 and if not does upgrading to it help?

    You can also try to disable the AJAX and see whether the issue is caused due to improper AJAX settings. You can examine the following resources for details on the matter:
        - http://demos.telerik.com/aspnet-ajax/ajaxpanel/overview/defaultcs.aspx
        -  http://demos.telerik.com/aspnet-ajax/ajaxpanel/application-scenarios/loading-usercontrols/defaultcs.aspx

    If the above information, however, do not help it would be better to try to reproduce the problem in a runnable sample and then provide it back to us. If, however, that is not possible you can send us at least the problematic code and/or a live URL of the page.

    Regards,
    Danail Vasilev
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ed
    Ed avatar
    2 posts
    Member since:
    Nov 2012

    Posted 25 Feb in reply to Danail Vasilev Link to this post

    I get about one of these per day. Here is an example:

    Unterminated string passed in. (5022): {"enabled":true,"emptyMessage":"","validationText":"~~~private text~~~","lastSetTextBoxValue":"~~~private text, but that is truncated~~~

    I cannot reproduce it myself, but our production server has several of these per week. I have replaced the actual text values with ~~~private text~~~ since I don't want to share the client information in there, but interestingly, the "lastSetTextBoxValue" is almost always truncated (and these tend to be long RadTextNox fields that are TextMode="MultiLine").

    Here is the stack trace:

    at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeString()
    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 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)

    My suspicion has been that the user's submission of the form is getting cut off, perhaps they close their browser before it completes or their connection gets cut off, but I'm not sure that is what is happening.

     

     

  5. Ed
    Ed avatar
    2 posts
    Member since:
    Nov 2012

    Posted 25 Feb in reply to Ed Link to this post

    I should have mentioned I'm using the latest version of the software. And I've been getting these for years. I just had never investigated it because I assumed it was just a cut off connection.
  6. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1492 posts

    Posted 01 Mar Link to this post

    Hello Ed,

    You can also try the following:

    • Disable AJAX by setting the EnableAJAX property of RadAjaxManager to false. If you are usingUpdatePanel - remove it. See if the behavior changes after this.
    • Disable RadCompression if it is enabled.
    Note that I want to help you and find a reliable solution if possible but we must initially reproduce the issue on our side. That is why I was asking if it is possible to send us a runnable sample and/or live URL of the problematic behavior. If that is not possible, however, can you try to send us the pages which are involved in the scenario, so that we can look for the existence of any peculiarities in the settings?

    Regards,
    Danail Vasilev
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017