Answered Wcf cant hande large list

  • Monday, March 14, 2011 7:22 AM
     
     

    Hello,

    I have a wcf service, using tcp. it has a method which i always call asynchronously.

    the method received an object with a list of long.

    usually, the list is not so big, and everything is just fine. the problem is, that if i pass a big list, for example with more then 20,000 numbers, it cannot handle it.

    it does not throw any exception, but the state turns into "Faulted" when the thread is completed, and on my next try to use the service of course i get an exception that the state is faulted.

    i tried configuring the app.config of my client with max int values on every place with "max.." parameter (for example, in the maxArrayLength).

    on the server side, i configured the behavior with:

    <dataContractSerializer maxItemsInObjectGraph="2147483647"/>

     

    Thanks alot!

All Replies