I have a WCF web service that is building up data into classes and then serialized automatically by WCF to JSON ( [WebGet(ResponseFormat = WebMessageFormat.Json,...)] and returning to the client. Everything works great until I have a very large amount of data. I have the web config settings maxed as 2147438647. The odd thing is that the classes are populated and are not null just before being passed back by the WCF service. However the client never receives the data nor an error message and IIS/WCF do not throw any type of exception. It is as if the data just disappears in thin air.
I have a WCF web service that is building up data into classes and
Share
What do you mean by “the client never receives the data”? The connection is dropped? It receives a response with 0 bytes?
There are many quotas in WCF, but they’re mostly for incoming data. There’s one for outgoing data, which you may be hitting, which is the
maxItemsInObjectGraph, which could be triggered for large object graphs. You should enable tracing in the server, and the traces should have an exception event which could shed some light on what the problem is.