c# - Still unable to transfer large amounts of data via WCF - what else is wrong? -



c# - Still unable to transfer large amounts of data via WCF - what else is wrong? -

i have issue i'm trying transfer big number of objects wcf service. have limit transfer of objects 100, otherwise there's kind of communications error.

i tried recommendations in solution, found here, maybe i'm missing something, still getting error.

here bottom part of wcf service's web.config:

<system.web> <httpruntime maxrequestlength="102400" /> <compilation debug="true" targetframework="4.0" /> </system.web> <system.servicemodel> <bindings> <wshttpbinding> <binding name="mywshttpbinding" /> </wshttpbinding> <nettcpbinding> <binding name="mynettcpbinding" closetimeout="00:01:00" opentimeout="00:01:00" receivetimeout="00:10:00" sendtimeout="00:01:00" transactionflow="false" transfermode="buffered" transactionprotocol="oletransactions" hostnamecomparisonmode="strongwildcard" listenbacklog="10" maxbufferpoolsize="2147483647" maxbuffersize="524288" maxconnections="10" maxreceivedmessagesize="2147483647"> <readerquotas maxdepth="32" maxstringcontentlength="8192" maxarraylength="16384" maxbytesperread="4096" maxnametablecharcount="16384" /> <reliablesession ordered="true" inactivitytimeout="00:10:00" enabled="false" /> <security mode="transport"> <transport clientcredentialtype="windows" protectionlevel="encryptandsign" /> </security> </binding> </nettcpbinding> </bindings> <behaviors> <servicebehaviors> <behavior name="mynettcpbehaviour"> <servicemetadata httpgetenabled="true"/> <servicedebug includeexceptiondetailinfaults="true"/> <datacontractserializer maxitemsinobjectgraph="2147483647"/> </behavior> <behavior> <!-- avoid disclosing metadata information, set value below false , remove metadata endpoint above before deployment --> <servicemetadata httpgetenabled="true"/> <!-- receive exception details in faults debugging purposes, set value below true. set false before deployment avoid disclosing exception info --> <servicedebug includeexceptiondetailinfaults="true"/> </behavior> </servicebehaviors> <endpointbehaviors> <behavior name="mynettcpendpointbehaviour"> <datacontractserializer maxitemsinobjectgraph="2147483647"/> </behavior> </endpointbehaviors> </behaviors> <servicehostingenvironment multiplesitebindingsenabled="true" /> </system.servicemodel> <system.webserver> <modules runallmanagedmodulesforallrequests="true"/> </system.webserver>

next, here lower part of web.config portion of website consumes web service:

<system.servicemodel> <bindings> <basichttpbinding> <binding name="basichttpbinding_ifeederservice" closetimeout="00:01:00" opentimeout="00:01:00" receivetimeout="00:10:00" sendtimeout="00:01:00" allowcookies="false" bypassproxyonlocal="false" hostnamecomparisonmode="strongwildcard" maxbuffersize="2147483647" maxbufferpoolsize="524288" maxreceivedmessagesize="2147483647" messageencoding="text" textencoding="utf-8" transfermode="buffered" usedefaultwebproxy="true"> <readerquotas maxdepth="32" maxstringcontentlength="55000" maxarraylength="16384" maxbytesperread="4096" maxnametablecharcount="16384" /> <security mode="none"> <transport clientcredentialtype="none" proxycredentialtype="none" realm="" /> <message clientcredentialtype="username" algorithmsuite="default" /> </security> </binding> </basichttpbinding> </bindings> <behaviors> <endpointbehaviors> <behavior name="myendpointbehavior"> <datacontractserializer maxitemsinobjectgraph="2147483647" /> </behavior> </endpointbehaviors> </behaviors> <client> <endpoint address="http://www.mysiate.com/myservice.svc" binding="basichttpbinding" bindingconfiguration="basichttpbinding_ifeederservice" contract="feederservice.ifeederservice" name="basichttpbinding_ifeederservice" /> </client> </system.servicemodel>

the error is:

an error occurred while receiving http response http://www.mysite.com/myservice.svc. due service endpoint binding not using http protocol. due http request context beingness aborted server (possibly due service shutting down). see server logs more details.

the odd thing writing post, retried changing homecoming logic 190 objects, , worked. retried, , failed.

is maybe matter of changing iis settings?

any assistance on appreciated.

thanks.

can't utilize 'streamed' wcf binding ?

wcf & streaming

c# wcf service large-data-volumes

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -