我已经使用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