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>