Web.config -- httpRuntime maxRequestLength Doesn't work as one would expect

D

David Elliott

I have a webservice written in C# that accepts a file size. The customer has
requested larger file sizes to be accepted.

I have the following set within my web.config.

<httpRuntime maxRequestLength="25600"
useFullyQualifiedRedirectUrl="true"
executionTimeout="40000"/>

I am allowing up to a 25 meg file to be sent to the webservice. The problem is
that the file can NOT be uploaded. It is throwing a size exception.

I started increasing the maxRequestLength in increments of 2000. I found that I
could not submit the 25 meg document until I increased the maxRequestLength
of the request to a value of 35600 (~35 meg).

There seems to be a 10 meg difference. Any thoughts would be appreciated.

Cheers,
Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,829
Latest member
KimberAlli

Latest Threads

Top