WCF Rest サービスでこの問題が発生しました。データが 1.2MB 以上になると、Chrome で「エラー: 101 この Web ページは利用できません」というメッセージが表示されます。Firefoxでは「接続がリセットされました」。ただし、小さなデータでは機能します。ちなみに、データはプレーンな JSON です。
以下は私の構成です:
WebConfig (バインディング構成):
<basicHttpBinding>
<binding name="basicHttpBindingConfig"
closeTimeout="00:30:00"
openTimeout="00:30:00"
receiveTimeout="Infinite"
sendTimeout="00:30:00"
maxBufferPoolSize="2147483647"
maxReceivedMessageSize="2147483647"
maxBufferSize="2147483647">
<readerQuotas
maxDepth="2147483647"
maxStringContentLength="2147483647"
maxArrayLength="2147483646"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647" />
</binding>
</basicHttpBinding>
<webHttpBinding>
<binding name="webclientHttpBindingConfig"
closeTimeout="00:30:00"
openTimeout="00:30:00"
receiveTimeout="Infinite"
sendTimeout="00:30:00"
maxBufferPoolSize="2147483647"
maxReceivedMessageSize="2147483647"
maxBufferSize="2147483647">
<readerQuotas
maxDepth="2147483647"
maxStringContentLength="2147483647"
maxArrayLength="2147483646"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647" />
</binding>
</webHttpBinding>
AppConfig (バインディング構成):
<basicHttpBinding>
<binding name="basicBindingForBigArrays"
maxBufferSize="2147483647"
maxBufferPoolSize="2147483647"
maxReceivedMessageSize="2147483647"
messageEncoding="Mtom">
<readerQuotas
maxDepth="2147483647"
maxStringContentLength="2147483647"
maxArrayLength="2147483647"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647" />
</binding>
</basicHttpBinding>
<webHttpBinding>
<binding name="webHttpBindingConfig"
maxBufferSize="2147483647"
maxBufferPoolSize="2147483647"
maxReceivedMessageSize="2147483647" >
<readerQuotas
maxDepth="2147483647"
maxStringContentLength="2147483647"
maxArrayLength="2147483646"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647"/>
</binding>
</webHttpBinding>
私はこれに何時間も苦労してきました。あなたの考えは大歓迎です。
よろしくお願いします、