I have a VB.net web service that returns JSON that works fine. Once the response gets to a certain size though, the client browser says that the server has closed the connection and sent no data. This is true using IE, Chrome, or Firefox. The magic size seems to be about 16383 records, or about 1.13MB of data. I know this is slightly large for a web service, but please go with this for now.
The connection is just closed, ie not a 500 or other error from the server. I also see the same behavior on IIS 7.5 and on ASP.net Development server from the IDE.
Using firebug, fiddler, and wireshark all seem to show that the server is closing the connection.
Since I can have this happen in the IDE using debug mode, I can step through the service and see that the service is invoked, calls out to the db, gets all the records properly, and then exits the sub normally. I also verified that this is not a data issue.
To attempt to trace, I added this param to my system.web
When running the web service, the Trace.axd shows the result as 200, so it would seem that the web server is happy, but the connection is still getting closed. This trace does not show much detail though.
Is there any know reason why the server or client would close the connection like this? Is there any known response size limits using IIS in this way? Is there any way to trace this down better?
Thanks much.