none
NetMessagingBinding and Outgoing Quotas RRS feed

  • Question

  • We are trying to use WCF and NetMessagingBinding to publish messages into a Windows Service Service Bus Topic and for large messages - at least 603kb - the push operation is throwing the following error:

    System.ServiceModel.QuotaExceededException: The maximum message size quota for outgoing messages (262144) has been exceeded.
    
    Server stack trace: 
       at System.Runtime.BufferedOutputStream.WriteCore(Byte[] buffer, Int32 offset, Int32 size)
       at System.Xml.XmlBinaryNodeWriter.FlushBuffer()
       at System.Xml.XmlStreamNodeWriter.GetBuffer(Int32 count, Int32& offset)
       at System.Xml.XmlStreamNodeWriter.UnsafeWriteUTF8Chars(Char* chars, Int32 charCount)
       at System.Xml.XmlBinaryNodeWriter.UnsafeWriteText(Char* chars, Int32 charCount)
       at System.Xml.XmlBinaryNodeWriter.WriteText(String value)
       at System.Xml.XmlBaseWriter.WriteString(String value)
       (...)

    From the error I noticed that the problem is not the serialization and therefore I can't use a Message Formatter. What else can I use to overcome this exception? Any thoughts?

    Thanks in advance!

    Monday, July 1, 2013 8:28 AM

Answers

All replies