[英]Issue related to WCF <readerQuotas> maxDepth
I have a WCF service with HTTP Bindings.我有一个带有 HTTP 绑定的 WCF 服务。 AppConif file maxDepth="32".
AppConif 文件 maxDepth="32"。 This works on all machines except ONE.
这适用于除 ONE 以外的所有机器。
My question is why doesn't this work on this machine when maxDepth="32".我的问题是当 maxDepth="32" 时为什么这在这台机器上不起作用。
When I set maxDepth="2147483647", it works on all machine.当我设置 maxDepth="2147483647" 时,它适用于所有机器。
Appreciate your help!感谢你的帮助!
The maxDepth attribute is documented here: http://msdn.microsoft.com/en-us/library/ms731325.aspx , and as you can see, it defines the maximum number of nested nodes in the XML structure.此处记录了 maxDepth 属性: http://msdn.microsoft.com/en-us/library/ms731325.aspx ,如您所见,它定义了 XML 结构中嵌套节点的最大数量。
I guess a client of the machine in question produces SOAP messages with a deep structure, which causes the exception.我猜有问题的机器的客户端会产生具有深层结构的 SOAP 消息,这会导致异常。
You can turn on WCF message tracing and use the WCF Trace Viewer to inspect the offending messages, as described here: http://msdn.microsoft.com/en-us/library/ms733025.aspx and http://msdn.microsoft.com/en-us/library/ms732023.aspx You can turn on WCF message tracing and use the WCF Trace Viewer to inspect the offending messages, as described here: http://msdn.microsoft.com/en-us/library/ms733025.aspx and http://msdn.microsoft .com/en-us/library/ms732023.aspx
--larsw --larsw
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.