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

Sporadic error using rad button

6 Answers 381 Views
Button
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Iron
Paul asked on 11 Feb 2016, 12:27 AM

 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)

6 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 15 Feb 2016, 12:43 PM
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
0
Ed
Top achievements
Rank 1
answered on 25 Feb 2016, 04:02 PM

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.

 

 

0
Ed
Top achievements
Rank 1
answered on 25 Feb 2016, 04:03 PM
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.
0
Danail Vasilev
Telerik team
answered on 01 Mar 2016, 01:33 PM
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
0
Tory
Top achievements
Rank 1
answered on 06 Aug 2020, 08:03 PM

Was there a resolution found for this issue?  The project I am working on is having the same sporadic symptoms.

RadCompression is not enabled.
Some of the controls that have triggered this issue are in RadAjaxPanels or UpdatePanels, while others use javascript to make ajax calls.

We have never been able to get the problem to duplicate 

Unterminated string passed in. (240): {"text":"Confirm Pickup Request","value":"","checked":false,"target":"","navigateUrl":"","commandName":"","commandArgument":"","autoPostBack":true,"selectedToggleStateIndex":0,"validationGroup":null,"readOnly":false,"primary":false,"enabled

 

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.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)
0
Vessy
Telerik team
answered on 07 Aug 2020, 11:26 AM

Hi Tory,

Usually, such issues are observed when there are nested AJAX panels on the page. When two AJAX requests are triggered at the same time, they cancel each other and breaks the functionality of the page (throwing JS errors, etc.). Can you make sure that there are no such nested update panels at your end?

In addition, we strongly recommend not using all AjaxUpdatePanels, UpdatePanels and AjaxManager at the same time in order to avoid issues like that. You can solve that by replacing the Ajax and Update panels with asp:Panels, adding the later to the update settings of the AjaxManager after that.

Regards,
Vessy
Progress Telerik

Tags
Button
Asked by
Paul
Top achievements
Rank 1
Iron
Answers by
Danail Vasilev
Telerik team
Ed
Top achievements
Rank 1
Tory
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or