I have a WCF endpoint that returns data queried from a database. For a particular call, for example, I know I should receive 175 records. But my WCF code is always only returning 105 records. I am able to obtain the expected 175 records by running the backend stored procedure that the endpoint function executes. Also if I connect to the endpoint with the WCF Test Client, it also obtains 175 records.
I've tried many things (changing bindings, readerquotas, fiddler, etc), but could not determine what is different in my code. Basically my code for test is a winforms app that has a service reference to the endpoint. I increase the maxReceivedMessageSize to 655360000 in my app.config, because the size of the data is large. I'm using WSHttp as my binding. Below is the code that performs the call and returns the 105 records:
var client = new MyDataClient("WSHttpBinding_IMyData");
var data = client.GetMyDataByDateRange("Location123", DateTime.Now.Date, DateTime.Now.Date).ToList();
MessageBox.Show(string.Format("Got {0} records", data.Count)); // always 105
Any ideas as to why my code would return an incorrect result set?