WCF 设置传输数据大小
一,设置ASP.NET
<system.web>
--这里的单位是K
<httpRuntime maxRequestLength="102400"/>
</system.web>
二,设置WCF
<bindings>
<wsHttpBinding>
--这里的单位是B
<binding name ="wsHttpBinding" maxReceivedMessageSize="2147483647" sendTimeout="00:10:00"></binding>
</wsHttpBinding>
</bindings>
<endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding" contract="FE.WcfService.Services.IStorage"></endpoint>