Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 09, 2008 03:27 PM by jerkham
Mar 24, 2007 12:12 AM|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 12:59 AM|LINK
Mar 26, 2007 04:13 PM|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 09:01 PM|LINK
I know you already got it working, but just to explain how it works...
Apr 09, 2008 03:27 PM|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. -->