C
C
Chik-2015-10-20 12:26:22
C++ / C#
Chik-, 2015-10-20 12:26:22

How to fix permanent error with MaxReceivedMessageSize in NetTcpBinding?

An error occurs

"The maximum message size quota for incoming messages (120000) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property of the corresponding binding element."

After some time, this error occurs.
And further at each start pours this problem.
Increased the maximum size almost twice.

binding.MaxReceivedMessageSize = 1200000;

It worked a bit and started to crumble again.
That is, for all launches of the program, it accumulates.
Is there any way to clear the buffer?
====================
UPDATED
====================
Packets sent and received are always about the same size ( 50-60 bytes)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Makarov, 2015-10-21
@Nipheris

> That is, for all launches of the program, it accumulates.
This would be extremely strange, it is unlikely that this is the reason. Is it possible to collect traffic with a sniffer and see what is the length of the last successfully received message, and what is the length of the first thrown one?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question