2014-08-27 134 views
0

當我上傳超過16KB的連接更WPF應用程序被中止轉讓上傳的文件大小超過16KB更大 客戶端app.config文件如何使用WCF服務


+0

你有沒有考慮吐有效載荷送入多個消息? – Gusdor 2014-08-27 12:51:22

回答

1

你可以嘗試設置更大的最大郵件大小(這可以被應用到服務和客戶端):

<system.serviceModel> 
    <bindings> 
     <wsHttpBinding> 
     <binding name="GenericBinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"> 
      <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/> 
     </binding> 
     </wsHttpBinding> 
    </bindings> 
</system.serviceModel>