problem uploading large file with webservice

Discussion in 'ASP .Net Web Services' started by Bram Kuijpers, Sep 27, 2006.

  1. Hi,

    we have programmed a webservice, in VS 2003 /dotnet 1.1, and use it to
    upload xml-files. The file is sent, as an attachment to a soap-file using
    DIME, in one http-POST. The content can be larger than 4 Mb, which used to
    give a http 500 error ("request too big" or something like that). So, I
    changed the setting for maxRequestLength (to "10240") in web.config to fix
    the problem. However, the result is now a http 400 (Invalid request) when
    uploading a 5Mb file. I also tried changing maxRequestLength in
    machine.config, but with the same result. We use Isapi Rewrite on the site
    to translate URL's.

    Does anyone have an idea about what causes the 400-code? Are there other
    settings responsible for only processing 4Mb of a request?

    Thanks,
    Bram Kuijpers
     
    Bram Kuijpers, Sep 27, 2006
    #1
    1. Advertising

  2. Bram Kuijpers

    Guest

    Hi Bram,
    Did you find any solution on this issue?
    Here I am facing same error:(400) while uploading file larger than 4MB
    inspite of setting maxRequestLength=20480
    Please write back in case of any solution.
    Thanks,

    Bram Kuijpers wrote:
    > Hi,
    >
    > we have programmed a webservice, in VS 2003 /dotnet 1.1, and use it to
    > upload xml-files. The file is sent, as an attachment to a soap-file using
    > DIME, in one http-POST. The content can be larger than 4 Mb, which used to
    > give a http 500 error ("request too big" or something like that). So, I
    > changed the setting for maxRequestLength (to "10240") in web.config to fix
    > the problem. However, the result is now a http 400 (Invalid request) when
    > uploading a 5Mb file. I also tried changing maxRequestLength in
    > machine.config, but with the same result. We use Isapi Rewrite on the site
    > to translate URL's.
    >
    > Does anyone have an idea about what causes the 400-code? Are there other
    > settings responsible for only processing 4Mb of a request?
    >
    > Thanks,
    > Bram Kuijpers
     
    , Nov 21, 2006
    #2
    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. - Steve -

    Uploading Large File to SQL

    - Steve -, Jul 13, 2004, in forum: ASP .Net
    Replies:
    11
    Views:
    728
    Joe Fallon
    Jul 22, 2004
  2. David

    Uploading large file

    David, Jan 20, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    447
    Hans Kesting
    Jan 20, 2005
  3. Dung Ping
    Replies:
    10
    Views:
    984
    Chaddy2222
    Jan 16, 2006
  4. Nayana

    problem of uploading large file in asp

    Nayana, Jan 7, 2005, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    102
    Roland Wolters
    Jan 10, 2005
  5. Paresh Shah
    Replies:
    1
    Views:
    135
    Paresh Shah
    Jul 14, 2003
Loading...

Share This Page