サービスを呼び出すと、次のエラーが発生します。
The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.
サービスの構成は次のとおりです。
<bindings>
<basicHttpBinding>
<binding name="basic" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" >
<readerQuotas maxDepth="32" maxStringContentLength="67108864" maxArrayLength="10240000" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
</binding>
</basicHttpBinding>
</bindings>
<services>
<service name="Company.Product.Service.FileManager.IFileManager">
<endpoint binding="basicHttpBinding" bindingConfiguration="basic" name="FileManager" bindingNamespace="Company.Product.FileManager.FileManagerService" contract="Company.Product.Service.FileManager.IFileManager" />
<host>
<baseAddresses>
<add baseAddress="http://filemanager.dev.v7.services.Company.net" />
</baseAddresses>
</host>
</service>
</services>
ご覧のとおり、それに応じて設定を調整したので、なぜこのエラーがまだ発生するのかわかりません。
クライアント構成;
<bindings>
<basicHttpBinding>
<binding name="basic" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="32" maxStringContentLength="67108864" maxArrayLength="10240000" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://filemanager.dev.v7.services.Company.net/service.svc" binding="basicHttpBinding" bindingConfiguration="basic" contract="Company.Product.Service.FileManager.IFileManager" name="FileManager"/>
</client>
アップデート
サービス構成をこれに変更すると (バインディング名が削除されます)、これが機能するようになりましたが、名前付き構成ではなぜ機能しないのでしょうか。
<bindings>
<basicHttpBinding>
<binding name="" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" >
<readerQuotas maxDepth="32" maxStringContentLength="67108864" maxArrayLength="10240000" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
</binding>
</basicHttpBinding>
</bindings>