wcf - The maximum message size quota for incoming messages (65536) has been exceeded even after changing to 2147483647 -
i'm using wcf client , call method getemployeeid
. in getemployeeid
method, have return statement.
return employeeid;
when add breakpoint on employeeid
- has 4984 id's.
once click on continue, getting following error:
failed invoke service. possible causes: service offline or inaccessible; client-side configuration not match proxy; existing proxy invalid. refer stack trace more detail. can try recover starting new proxy, restoring default configuration, or refreshing service.
inner exception:
maximum message size quota incoming messages (65536) has been exceeded. increase quota, use maxreceivedmessagesize property on appropriate binding element.
in client , service, using:
<bindings> <basichttpbinding > <binding name="mybasichttpbinding" maxbufferpoolsize="2147483647" maxbuffersize="2147483647" maxreceivedmessagesize="2147483647"> <readerquotas maxdepth="32" maxstringcontentlength="2147483647" maxarraylength="2147483647" /> </binding> </basichttpbinding> </bindings>
and endpoint address :
<endpoint address="http://localhost/employeeservice/service.svc" binding="basichttpbinding" bindingconfiguration="mybasichttpbinding" contract="employee.contract.iemployee" >
the number of ids being less max size quota possible. if have, example, basic id looks
5
then though it's "1" record, takes 26 bytes of "size".
Comments
Post a Comment