[Mono-list] Large messages over NetTcpBinding
wuffus
w.schwarz at odoscope.com
Tue Nov 8 10:02:44 EST 2011
How can I send a large message over a NetTcpBinding?
I always get the error "The message is too large." In
TcpBinaryFrameManager.cs, method ReadSizedChunk(), there is a hardcoded
limit of 65536.
I am already using TransferMode.Streamed and have set MaxReceivedMessageSize
etc. to large values:
NetTcpBinding binding = new NetTcpBinding(SecurityMode.None);
binding.MaxReceivedMessageSize = 100000000;
binding.MaxBufferSize = 10000000;
binding.ReaderQuotas=new System.Xml.XmlDictionaryReaderQuotas();
binding.ReaderQuotas.MaxStringContentLength = 8000000;
binding.ReaderQuotas.MaxArrayLength = 10000000;
binding.TransferMode=TransferMode.Streamed;
I return a Stream. Do I need to split it up myself somehow?
--
View this message in context: http://mono.1490590.n4.nabble.com/Large-messages-over-NetTcpBinding-tp4016272p4016272.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list