Issue related to WCF <readerQuotas> maxDepth

倾然丶 夕夏残阳落幕 提交于 2020-01-13 10:43:14

问题


I have a WCF service with HTTP Bindings. AppConif file maxDepth="32". This works on all machines except ONE.

My question is why doesn't this work on this machine when maxDepth="32".

When I set maxDepth="2147483647", it works on all machine.

Appreciate your help!


回答1:


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.

I guess a client of the machine in question produces SOAP messages with a deep structure, which causes the exception.

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



来源:https://stackoverflow.com/questions/5810552/issue-related-to-wcf-readerquotas-maxdepth

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!