Can't collect data from WCF -
my problem when downloading data webservice, 1250 records, works should (done in 30 seconds), when wants 1300 records , method works indefinitely (it's ends after 10 minutes timeout). tested sql query , query executes quickly(also tested in wcf service debugging), when there data transfer slows down. web config binding:
<basichttpbinding> <binding name="soapuniglobshopservice" closetimeout="00:10:00" opentimeout="00:10:00" receivetimeout="00:10:00" sendtimeout="00:10:00" allowcookies="false" bypassproxyonlocal="false" hostnamecomparisonmode="strongwildcard" maxbuffersize="4000000" maxbufferpoolsize="524288" maxreceivedmessagesize="4000000" messageencoding="text" textencoding="utf-8" transfermode="buffered" usedefaultwebproxy="true"> <readerquotas maxdepth="32" maxstringcontentlength="8192" maxarraylength="16384" maxbytesperread="4096" maxnametablecharcount="16384" /> <security mode="none"> <transport clientcredentialtype="none" proxycredentialtype="none" realm="" /> <message clientcredentialtype="username" algorithmsuite="default" /> </security> </binding>
i dont know should change in web config records or maybe should change in iis , dont know.
_____________ solution found on page : http://ardalis.com/fixing-maxitemsinobjectgraph-quota-error-in-wcf-service
best regards marcel
your configuration file required higher max values in order process larger data set. after still had problem of maxitemsinobjectgraph had increased. problem ran said "maxitemsinobjectgraph big can 65536" after increased it's size, meant needed make sure client , service values same. in fact, goes configuration settings, service , client values have match binding work properly.
Comments
Post a Comment