5

Hi I am facing the below error when application was hosted in the server. The application is working fine on the local box. "The maximum message size quota for incoming messages (100000000) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element."

All the searches done resulting in solving the issue with WCF But here I am not using any WCF service.

Please help me with this.

RaaMee
  • 51
  • 1
  • 4
  • so what is your application and what does it do? do you set a `maxReceivedMessageSize` in its config file? – kennyzx Dec 30 '14 at 04:25
  • I am not using any web service. I am pulling data from the Team Foundation Server. Previously it was working fine. But all of a sudden I am facing the above mentioned error. – RaaMee Dec 31 '14 at 10:20
  • Here, have a look at this: http://stackoverflow.com/questions/884235/wcf-how-to-increase-message-size-quota – Tomer Klein Jan 02 '15 at 07:16

2 Answers2

8

just add this to your binding in the app.config

<binding name="binding name.." maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"/>
Tomer Klein
  • 436
  • 2
  • 6
0

Are you using the service model decorations on your classes ([ServiceContract] or [DataContract])? I suggest checking in all your project references if you have System.ServiceModel reference and removing it to see if any code breaks.

Marius Vorster
  • 196
  • 1
  • 10