我已經使用WCF實現了一小部分REST服務。其中一項服務收到大量數據。當調用它(這是從Visual Studio運行過程中出現的時候了 - 我還沒有部署國際熱帶木材組織生產服務器還)我得到的錯誤WCF服務返回的意外響應:(413)請求實體太大
The remote server returned an error: (413) Request Entity Too Large.
我的web配置
<binding name="BasicHttpBinding_ISalesOrderDataService"
closeTimeout="00:10:00"
openTimeout="00:10:00"
receiveTimeout="00:10:00"
sendTimeout="00:10:00"
allowCookies="false"
bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="2147483647"
maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647"
textEncoding="utf-8"
transferMode="Buffered"
useDefaultWebProxy="true"
messageEncoding="Text">
<readerQuotas maxDepth="2000000"
maxStringContentLength="2147483647"
maxArrayLength="2147483647"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647" />
<security mode="None">
<transport clientCredentialType="None"
proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName"
algorithmSuite="Default" />
</security>
</binding>
你在哪裏託管?在IIS中? –
是在IIS ..。 – Rakin
我的數據只有20KB。當我將對象轉換爲JSON。 – Rakin