Last post Apr 09, 2008 04:27 PM by jerkham
Mar 24, 2007 01:12 AM|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 24, 2007 01:59 AM|alesha911|LINK
Mar 26, 2007 05: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 10:01 PM|maira.wenzel|LINK
I know you already got it working, but just to explain how it works...
Apr 09, 2008 04:27 PM|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. -->