I am working on Google Map Marker V3.User can add Map Marker and additional info and this information is stored in sql Sever database. when the map page is loaded first time I retrieved all the markers stored in DB and display them on map. for Ajax call I am using WCF and Jquery. Every thing was working fine but one day I got an error
"Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property".
For this I increase the size of maxJsonLength as following:
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="5000000"/>
</webServices>
</scripting>
</system.web.extensions>
So for Now my application again working fine. My question is that is there any other way So that I can Increase this maxJsonLength at run time because I have to deliver this project to my client and if in future this same problem occurred this feature will stop working. I also found some other example on stackoverflow Can I set an unlimited length for maxJsonLength in web.config?
Thanks