<pre>-<system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/> -<services> -<service behaviorConfiguration="WcfService1.Service1Behavior" name="MyFileServer.Service1"> -<endpoint contract="MyFileServer.IService1" bindingConfiguration="TransactionalBind" binding="wsHttpBinding" address=""> -<identity> <dns value="localhost"/> </identity> </endpoint> <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex"/> </service> </services> -<bindings> -<wsHttpBinding> -<binding name="TransactionalBind" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" transactionFlow="true"> <readerQuotas maxNameTableCharCount="2147483647" maxBytesPerRead="2147483647" maxArrayLength="2147483647" maxStringContentLength="2147483647" maxDepth="2147483647"/> <security mode="None"/> </binding> </wsHttpBinding> </bindings> -<behaviors> -<serviceBehaviors> -<behavior name="WcfService1.Service1Behavior"> <serviceMetadata httpGetEnabled="true"/> <serviceDebug includeExceptionDetailInFaults="true"/> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel>
Open IIS Manager Select the site Double click "Configuration Editor" Select system.webServer and then serverRuntime Modify the uploadReadAheadSize value Click "Apply"
BasicHttpBinding.MaxReceivedMessageSize
Property Value Int64: The maximum size, in bytes, for a message that is processed by the binding. The default value is 65,536 byt
<configuration> <system.serviceModel> <bindings> <basicHttpBinding> <binding name="Binding1" maxReceivedMessageSize = "1000000"> <security mode="None" /> </binding> </basicHttpBinding> </bindings> </system.serviceModel> </configuration>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)