I tested my WCF service with soapUI and wondered why I always got Socket Exception: Connection reset. I saw with debugger that my service returned what it should. The amount of data returned was big, and I had modified my web.config (maxReceivedMessageSize, maxBufferPoolSize, maxStringContentLength, maxArrayLength) to allow large data.
After checking the trace files, it turns out I also need to add endpoint behavior to change the maxItemsInObjectGraph setting: http://stackoverflow.com/questions/3058202/wcf-service-datacontractserializer-maxitemsinobjectgraph-in-web-config
No comments:
Post a Comment