问题描述
我试图调用WCF服务(在Windows服务,而不是IIS托管)和我得到以下错误:
I have tried increasing the MaxReceivedMessageSize and the ReaderQuotas to their maximum values without any luck.
I have also turned on logging and checked the messsage size that's getting "sent." It's definitely nowhere near the maximum. We're talking about sending an object that serialized into 372KB XML.
Two questions:
Does anyone know what "server logs" the message is referring to? I've checked the EventViewer but nothing shows up there...
Does anyone know what other configuration setting(s) might apply here?
Your question reminded me of a blog post by Shawn Wildermuth where he was having trouble with Large Message Sizes in a Silverlight application. Perhaps this will help you out:
http://wildermuth.com/2009/09/10/Using%5FLarge%5FMessage%5FRequests%5Fin%5FSilverlight%5Fwith%5FWCF
Shawn says:
这篇关于WCF最大邮件大小配额的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!