我收到以下錯誤:的WebHttpBinding郵件大小超出配額
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字節的幫助。
有什麼辦法來編輯ServiceHostFactory行爲,這樣的地方,我可以MaxReceivedMessageSize屬性設置爲2GB
感謝您的答覆。
由於我使用WebHttpBinding,我想知道如何重寫ServiceHostFactory。
創建自定義類並重寫WebServiceHost的OnOpening()方法可以解決問題嗎?
您好,感謝您的答覆。 – user1400915