次のエラーが表示されます。
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.
- REST サービスを使用する WebhttpBinding を使用しています。
- クライアント側からの構成設定はありません。
- MVC3 アプリケーションを使用しています。
65536 バイトを超えるストリームのヘルプが必要です。
MaxReceivedMessageSize プロパティを 2GB に設定できるように ServiceHostFactory の動作を編集する方法はありますか
ご返信ありがとうございます。
私は WebHttpBinding を使用しているので、 ServiceHostFactory をオーバーライドする方法を知りたいです。
カスタム クラスを作成し、WebServiceHost の OnOpening() メソッドをオーバーライドすると、問題を解決できますか?