The maximum message size quota for incoming messages (65536) has been - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

The maximum message size quota for incoming messages (65536) has been

jasonc4jasonc4 Posts: 1Member
Hey all,

I was wondering if anybody could help. I am using the Entity Framework to interact with my DB and when I started passing more data around, I started recieving '400 Bad Request' with this error attached: '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.'

I trimmed down what was being sent (because it shouldn't be sending over 64k in the first place) but that didn't solve the problem.

I then changed all occurances of 65536 in my solution to 655360 but it still threw up the exact same error (it was still using 65536). One of the binding properties MaxRecievedMessageSize also automatically resets to 65536 when I update the service reference.

It seems like something isn't being explicitely defined somewhere and so the default value being used is 65536. But I have no idea where to set it and when I do seem to set it in the right place, it still errors.

Can anybody help me?
Sign In or Register to comment.