Hey guys, the WCF question for you here:
I have two services, and I send fairly short messages between them (~ 100 kb). Although the previously mentioned value is typical for the size of the message, it can fluctuate greatly (in both positive and negative directions).
Thus, in order to deal with such situations when I have to transfer a swollen message, I collapsed the entire maximum message size, maximum size, etc. attributes in app.config both on the client and on the server (with the corresponding endpoint correctly referring to the binding that determines the sizes)
The amount associated with you completely exceeds any possible message size for security. However, when the interservice communication turned out to be reliable at the bottom of the message size scale, this is not the case at the upper end - messages do not seem to be delivered at all.
The strangest thing is that if the message exceeded the maximum size, then an exception would be thrown (I met them enough to know that! Lol), but nothing throws - everything goes completely silently. I experimented with different message sizes, and this is definitely just starting to happen as the message size grows. I can prove that the destination service was not received, because when the service is received, the service writes to the database - but the log is not created with large messages.
as I said, I'm pretty sure I have increased the size of all applicable attributes in app.config, and therefore I am completely and completely puzzled by this behavior!
Any suggestions on what might cause such mystical behavior? any help would be much appreciated as this is the final obstacle in my project! thanks: -)
max service message size wcf
Nick
source share