我的WCF服务处设在Windows Service。 客户申请是一个网站项目,我添加服务参考资料。
现在,Windows服务配置文件对MaxReceivedMessageSize有适当的环境:
<netTcpBinding>
<binding name="netTcp" maxBufferPoolSize="50000000" maxReceivedMessageSize="50000000">
<readerQuotas maxDepth="500" maxStringContentLength="50000000" maxArrayLength="50000000"
maxBytesPerRead="50000000" maxNameTableCharCount="50000000" />
<security mode="None"></security>
</binding>
</netTcpBinding>
But when I add Service Reference to WebSite project, it updates the web.config with default values. And then I receive this error: The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.
我认为,更新网站编集,说明服务集团的情况,将会消除这一错误。
但是,我想知道,在我增加服务参考时,我是否需要逐个人工改变这些环境?