我正在尝试使用 WCF 和 NetMessagingBinding 将消息发布到 Windows 服务服务总线主题和大消息 - 至少 603kb - 推送操作引发以下错误:
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)
(...)
从错误中我注意到问题不是序列化,因此我不能使用消息格式化程序。我还能用什么来克服这个异常?有什么想法吗?
提前致谢!