WebService Rest接收大量数据出现基础连接已经关闭的解决方案

web.config新增配置

 <system.serviceModel>     <bindings>    <basicHttpBinding>         <binding       maxBufferSize="2147483647"      maxBufferPoolSize="2147483647"      maxReceivedMessageSize="2147483647"      messageEncoding="Text"      transferMode="Buffered"      >          </binding>    </basicHttpBinding>   </bindings>   <behaviors>    <serviceBehaviors>     <behavior>      <dataContractSerializer maxItemsInObjectGraph="2147483647"/>     </behavior>    </serviceBehaviors>   </behaviors>  </system.serviceModel>

posted @ 2013-08-13 11:01  mting2013  阅读(324)  评论(0编辑  收藏  举报