"Stephen Ahn" <noaddress_at_noaddress.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
System.Web.HttpException: Maximum request length exceeded. at
System.Web.HttpRequest.GetEntireRawContent()
: : Now, I can change the maxRequestLength attribute in httpRuntime element in
machine.config,
and this makes the code work (since default is 4096 KBytes).
Is it possible to configure maxRequestLength in the application's config
file ?
No, the HTTP Runtime that's being configured is on the server.
The server is oblivious to the configuration files on it's clients.
It would rather undermine the point of allowing server admins to
specify a maxRequestLength (that point being to prevent DoS
attacks whereby miscreants tie up a server by submitting large
requests) if any hacker could simply set a larger value on their
client and bypass the server's setting, wouldn't it? :-)
Talk to the administrator of the server to increase the setting;
or re-design your requests to fit within your alloted bandwidth
by breaking the data up into chunks across multiple requests
and re-assembling them on the other end.
Derek Harmon