i make WCF service on server side to return binary (bytes) of file.. i just can return binary of txt file,otherwise it's say "The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element."
here my code
maxReceivedMessageSize="2147483647"
maxBufferSize="2147483647"
maxBufferPoolSize="2147483647"
transferMode="Buffered"
messageEncoding="Text"
textEncoding="utf-8"
bypassProxyOnLocal="false"
useDefaultWebProxy="true" >
maxArrayLength="2147483647"
maxStringContentLength="2147483647"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647"/>
can you give me solution?
i need your help..thanks before :)
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Khan Abrar AhmedPosted Aug 13, 2014, 7:01 AM
and if you hosted the service on IIS then change in IIS application host file to add below tag on your virtual directory
Pradeep ShetPosted Aug 13, 2014, 5:30 AM
Hi,
While adding service reference at client side. You may have not used the binding configuration basicHttp in webconfig. Please check it. It will solve your problem.
Please mark it answered if it helped you