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>

posted @ 2010-12-24 01:29  抱影无眠  阅读(1724)  评论(0编辑  收藏  举报