Last post Apr 09, 2008 11:27 AM by jerkham
Mar 23, 2007 08:12 PM|JCannelos|LINK
I have what I hope is a simple problem. I am calling a simple web service in my project called FilterService. It has one method:
serializer.MaxJsonLength = 500000000;
As you can see, I have set the MaxJsonLength to a huge number, but I am STILL getting a "Maximum Length exceeded" error. This happens in both GET and POST scenarios. Also, my setting in the web.config file:
is completely ignored! :( Finally, I know for a fact that my list (IndustryList) is not THAT large. Does anyone know what is happening here?
web service ajax
Mar 23, 2007 08:59 PM|alesha911|LINK
Mar 26, 2007 12:13 PM|JCannelos|LINK
Thanx for your reply... that works! It seems that the web.config setting overrides whatever setting you manually try to set maxlength to later. Doh!
Mar 29, 2007 05:01 PM|maira.wenzel|LINK
I know you already got it working, but just to explain how it works...
Apr 09, 2008 11:27 AM|jerkham|LINK
And that section in the web. config looks like this...
<!-- Uncomment this line to customize maxJsonLength and add a
custom converter -->
<!-- Uncomment this line to enable the authentication service.
Include requireSSL="true" if appropriate. -->
<authenticationService enabled="true" requireSSL = "true|false"/>
<!-- Uncomment these lines to enable the profile service. To
allow profile properties to be retrieved
and modified in ASP.NET AJAX applications, you need to add
each property name to the readAccessProperties and
writeAccessProperties attributes. -->