WCF上传大文件处理方法

<system.serviceModel>
<bindings>
<basicHttpBind>
<Binding name="服务名" maxBufferPollSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"
 maxReceivedMessageSize="2147483647" maxBufferSize="2147483647">

<readerQuotas axDepth="2000000" maxStringContentlength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647">

<security mode="none">
<transport clientGredentialType="None" proxyCredentialType="None" realm="">
<message clientGredentialType="userName" algorithmSuite="Default" >
</security>
</binding>
<binding closeTime="00:20:00" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"></binding>

</basicHttpBind>
</bindings>

<behavior>
<dataContractSerializer mxItemsInObjectGraph="2147483647">
<serviceMetadata HttpGetEnabled="True" httpsGetEnabled="False">
</behavior>
<protocolMapping>
<add binding="basicHttpbinding" scheme="https">
</protocolMapping>
</system.serviceModel>

<configuration>下加 <system.webServer><directoryBrowse enable="true"> </system.webServer>

 

posted @ 2016-04-05 16:59  想念熊小米  阅读(375)  评论(0编辑  收藏  举报