Asp.net
IIS 7 的最大預設 POST 請求大小 - 如何增加 64kB/65kB 限制?
我在 ASp .net C# 中創建了一個 RESTful POST Web 服務,IIS 託管該服務。
我的服務接受 XML 文件作為輸入,當大小超過 65KB 時,我收到以下錯誤消息:
遠端伺服器返回錯誤:(400) 錯誤請求。
我的問題是雙重的,首先是 IIS 伺服器為 POST 請求設置了預設限制,其次如何更新它?
非常感謝
John Källén 的回答是正確的,但在我的情況下,我定義了一個端點,因此設置 maxReceivedMessageSize 必須如下:
<standardEndpoints> <webHttpEndpoint> <standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true" maxReceivedMessageSize="2147483647"> </standardEndpoint> </webHttpEndpoint> </standardEndpoints>