When creating a web service, the following configured bindings should be taken into consideration, based on the endpoint you are using (soap, rest etc.), to avoid large parameter structures not being processed or timeout issues:
Also, the following runtime tag should look like this:
Another best practice to avoid potential “System.InvalidOperationException: The JSON request was too large to be deserialized” would be (works for MVC as well):
– adjust the maxJsonLength property to a higher value:
– set a higher value for aspnet:MaxJsonDeserializerMembers in the appSettings tag:
For further information, please check webHttpBinding and basicHttpBinding on MSDN.