wcf binding - Wcf service configuration issue -


i getting issue wcf service have created. issue not coming on clients - i.e. on systems working others not.

error 1: maximum message size quota incoming messages (65536) has been exceeded. increase quota, use maxreceivedmessagesize property on appropriate binding element.

error 2: on system operation contract not exposed properly. red symbol coming across operation contract. , unable call using wcftestclient.

config file:

<system.servicemodel> <bindings> <basichttpbinding> <binding name="basichttpbinding" maxreceivedmessagesize="2147483647" maxbufferpoolsize="2147483647" > <readerquotas maxarraylength="2147483647" maxstringcontentlength="2147483647" /> </binding> </basichttpbinding> </bindings>     <services>       <service name="externalservice.service.mydashboardservice">         <host>           <baseaddresses>             <add baseaddress = "http://****/externalservice.service/mydashboardservice/" />           </baseaddresses>         </host>         <!-- service endpoints -->     <endpoint address="" binding="basichttpbinding" bindingconfiguration="basichttpbinding" contract="externalservice.serviceinterface.imydashboardservice">           <identity>             <dns value="localhost"/>           </identity>         </endpoint>  <endpoint address="mex" binding="mexhttpbinding" contract="imetadataexchange"/>       </service>     </services>      <behaviors>       <servicebehaviors>         <behavior>                        <servicemetadata httpgetenabled="true" httpsgetenabled="true"/>                       <servicedebug includeexceptiondetailinfaults="false" />         </behavior>       </servicebehaviors>     </behaviors> 

now client config getting in wcftestclient error 1:

<?xml version="1.0" encoding="utf-8"?> <configuration>     <system.servicemodel>         <bindings>             <basichttpbinding>                 <binding name="basichttpbinding_imydashboardservice" />             </basichttpbinding>         </bindings>         <client>             <endpoint address="http://****/externalservice.service/mydashboardservice/"                 binding="basichttpbinding" bindingconfiguration="basichttpbinding_imydashboardservice"                 contract="imydashboardservice" name="basichttpbinding_imydashboardservice" />         </client>     </system.servicemodel> </configuration> 

client config when service working:

<?xml version="1.0" encoding="utf-8"?> <configuration>     <system.servicemodel>         <bindings>             <basichttpbinding>                 <binding name="basichttpbinding_imydashboardservice" closetimeout="00:01:00"                     opentimeout="00:01:00" receivetimeout="00:10:00" sendtimeout="00:01:00"                     allowcookies="false" bypassproxyonlocal="false" hostnamecomparisonmode="strongwildcard"                     maxbuffersize="65536" maxbufferpoolsize="524288" maxreceivedmessagesize="65536"                     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>             </basichttpbinding>         </bindings>         <client>             <endpoint address="http://****/externalservice.service/mydashboardservice/"                 binding="basichttpbinding" bindingconfiguration="basichttpbinding_imydashboardservice"                 contract="imydashboardservice" name="basichttpbinding_imydashboardservice" />         </client>     </system.servicemodel> </configuration> 

please suggest reason different behavior of service on different machines.

you should use same bindingconfiguration on both sides clients , service


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -