Reading through the forums I've seen many people have this problem and I've tried the associated fixes for those people but I am still experiencing some problems.
Most of my forms will save fine, but the larger ones (2 steps, 9 sections, 34 questions in total) are bringing up the dreaded 'failed to save form' speech bubble.
The site is running 4.5.2 with contour 1.1.11.
Looking at the reponses in firebug I can see that the reponse is a 500 and a message about the length of the parameter being too long
{"Message":"Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property. Parameter name: input","StackTrace":" 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 System.Web.Script.Services.RestHandler.GetRawParamsFromPostRequest(HttpContext context, JavaScriptSerializer serializer) at System.Web.Script.Services.RestHandler.GetRawParams(WebServiceMethodData methodData, HttpContext context) at System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)","ExceptionType":"System.ArgumentException"}
(int.maxvalue) but we still receive the same problem. The form I am testing with has a value length of 136,843 from what I can see.
Hoping someone has encountered this and has something helpful to say, or perhaps just point out something blindnigly obvious I am missing. There isn't some separate setting for length
Oh, I thought I'd deleted this thread as I found the solution to be an exceptionally numptyish one about 5 minutes after posting....
Person who made the changes to the live server had got a typo in the max length number... causing it to be greater than int.MaxValue which then results in it returning to the default value.
Thanks for the replies anyway guys.... any way I can #h5is myself on this post?! ;)
I've test it locally and it worked out perfect, but when I test it on a online server it gives a 500-error. I've contacted my host and they didn't have a solution for this case. Any ideas about this?
Contour 'Failed to save form'
Reading through the forums I've seen many people have this problem and I've tried the associated fixes for those people but I am still experiencing some problems.
Most of my forms will save fine, but the larger ones (2 steps, 9 sections, 34 questions in total) are bringing up the dreaded 'failed to save form' speech bubble.
The site is running 4.5.2 with contour 1.1.11.
Looking at the reponses in firebug I can see that the reponse is a 500 and a message about the length of the parameter being too long
So seeing this we tried changing web.config to
<jsonSerialization maxJsonLength="2147483647"></jsonSerialization>
(int.maxvalue) but we still receive the same problem. The form I am testing with has a value length of 136,843 from what I can see.
Hoping someone has encountered this and has something helpful to say, or perhaps just point out something blindnigly obvious I am missing. There isn't some separate setting for length
Thanks in advance,
Rich
Comment author was deleted
Hi Rich,
Hmm looks like that should fix it, are you sure the web.config additions are correct( in correct section, correct casing...)
i am running a 4.7.1 site. I had the same problem with the form not saving. But changing the maxJsonLength value worked for me.
I have a form with 6+ steps, an average of 2+ sections, and a average of 8+ questions pr. section, and still counting..
Oh, I thought I'd deleted this thread as I found the solution to be an exceptionally numptyish one about 5 minutes after posting....
Person who made the changes to the live server had got a typo in the max length number... causing it to be greater than int.MaxValue which then results in it returning to the default value.
Thanks for the replies anyway guys.... any way I can #h5is myself on this post?! ;)
Rich
I had the same problem with a large form and changed the web.config with the following lines:
I've test it locally and it worked out perfect, but when I test it on a online server it gives a 500-error. I've contacted my host and they didn't have a solution for this case. Any ideas about this?
Is there a solution or workaround to this?
Dennis
is working on a reply...