c# - WCF binding I not understanding what is wrong -


i started coding in vs 2013. have 2 endpoints (besides mex) - wanted download lot more data last endpoint. - added config - own http binding > bhbinding (sorry flaling) 2147483647 everywhere - client seams getting old error 65536 not big enough. "the maximum message size quota incoming messages (65536) has been exceeded. "

i have not delt wcf - able in past work, not sure not seeing or understanding. , regards.

here config:

 <system.servicemodel>     <bindings>       <basichttpbinding>         <binding name="bhbinding" allowcookies="true" maxbufferpoolsize="2147483647"           maxbuffersize="2147483647" maxreceivedmessagesize="2147483647" >           <readerquotas maxdepth="2147483647" maxstringcontentlength="2147483647" maxnametablecharcount="2147483647"             maxarraylength="2147483647" maxbytesperread="2147483647"/>         </binding>       </basichttpbinding>     </bindings>     <services>       <service name="ftpservicelibrary.ftpservice">         <endpoint address="" binding="basichttpbinding" bindingname=""           contract="ftpservicelibrary.iftperror">           <identity>             <dns value="localhost" />           </identity>         </endpoint>         <endpoint address="mex" binding="mexhttpbinding" contract="imetadataexchange" />         <endpoint address="/ftpsettingaddress" binding="basichttpbinding"           bindingconfiguration="bhbinding" bindingname="" contract="ftpservicelibrary.iftpsetting" />         <host>           <baseaddresses>             <add baseaddress="http://localhost:8733/design_time_addresses/ftpservicelibrary/service1/" />           </baseaddresses>         </host>       </service>     </services>     <behaviors>       <servicebehaviors>         <behavior>           <!-- avoid disclosing metadata information,            set values below false before deployment -->           <servicemetadata httpgetenabled="true" httpsgetenabled="true" />           <!-- receive exception details in faults debugging purposes,            set value below true.  set false before deployment            avoid disclosing exception information -->           <servicedebug includeexceptiondetailinfaults="false" />         </behavior>       </servicebehaviors>     </behaviors>   </system.servicemodel> 

thanks tung pointing me in right direction- have further learn not server side how server , client have different needs. here updated client side:

<bindings>              <basichttpbinding>                  <!--<binding name="bhbinding_iftpsetting" />-->                <binding name="bhbinding_iftpsetting" allowcookies="true" maxbufferpoolsize="2147483647"            maxbuffersize="2147483647" maxreceivedmessagesize="2147483647" >                  <readerquotas maxdepth="2147483647" maxstringcontentlength="2147483647" maxnametablecharcount="2147483647"                    maxarraylength="2147483647" maxbytesperread="2147483647"/>                </binding>              </basichttpbinding>          </bindings>          <client>              <endpoint address="http://server.company.com/ei.secureftp/ftpservicelibrary.ftpservice.svc/ftpsettingaddress"                  binding="basichttpbinding" bindingconfiguration="bhbinding_iftpsetting"                  contract="ftpservice.iftpsetting" name="bhbinding_iftpsetting" />          </client>


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -