Reputation: 727
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.
Upvotes: 2
Views: 1935
Reputation: 1
check the in your web.config..make sure you have this
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="4294967295"/>
</requestFiltering>
</security>
</system.webServer>
the maxAllowedContentLength limits/sets the uploading size..
Upvotes: 0
Reputation: 87218
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.
Upvotes: 2