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

Discussion in 'ASP .Net Web Services' started by David Elliott, Jan 27, 2005.

  1. 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
     
    David Elliott, Jan 27, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter Row
    Replies:
    1
    Views:
    1,463
    Peter Row
    Dec 4, 2003
  2. Goncalo
    Replies:
    2
    Views:
    1,131
    Goncalo
    Jan 7, 2004
  3. moondaddy
    Replies:
    25
    Views:
    18,703
    Hermit Dave
    Aug 30, 2004
  4. Matt Chubb
    Replies:
    7
    Views:
    14,246
    xmanta
    Oct 30, 2006
  5. =?Utf-8?B?QW5keSBTdGVwaGVucw==?=

    When does the httpRuntime maxRequestLength setting kick in?

    =?Utf-8?B?QW5keSBTdGVwaGVucw==?=, May 8, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    816
    bruce barker \(sqlwork.com\)
    May 8, 2006
Loading...

Share This Page