から読み込まれていない:WCF maxReceivedMessageSizeは、私は、WCFサービスのために、次のサーバー側のapp.configを持っているコンフィグ
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="default" maxReceivedMessageSize="5000000">
<readerQuotas maxStringContentLength="5000000" maxArrayLength="5000000" />
</binding>
</wsHttpBinding>
</bindings>
<services>
<service behaviorConfiguration="Core.TOAService.Service1Behavior"
name="Core.TOAService.TOAService">
<endpoint address="" binding="wsHttpBinding" contract="Core.TOAService.ITOAService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8732/Design_Time_Addresses/Core.TOAService/TOAService/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="Core.TOAService.Service1Behavior">
<!-- To avoid disclosing metadata information,
set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="True"/>
<!-- To receive exception details in faults for debugging purposes,
set the value below to true. Set to false before deployment
to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
私がしようとすると(のみ〜250キロバイト)、私が手にこのサービスに大きめのファイルを渡します
着信メッセージ(65536)の最大メッセージサイズのクォータが を超えました:svclogファイルに記録例外。クォータを増やすには、 のMaxReceivedMessageSizeプロパティを適切なバインディング要素の に設定します。
あなたが設定の上部に結合部分から見ることができるように、私は5000000にmaxReceivedMessageSizeを設定しようとしたが、サービスはまだ間違っているものにとして65536それがデフォルトに設定されているすべてのアイデアを考えていますまたは「適切な」結合要素であるか?
はい、バインディング設定を参照する必要があります。 バッファの変更はおそらく必要ありません。 –
3つのバッファの変更が本当に必要かどうかは決して決してありません。試してみると分かります。残念ながら、これらの設定を調整する方法については、実際には良い、包括的なドキュメントと説明はありません。 –
Doh、サーバーVS2010を使用して3.5サービスを構築してください多くのおかげで、それはそれを修正しました。 –