Uploading files up to 150MB onto server

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Uploading files up to 150MB onto server

    Dear all,

    I am running an online file management server that allows web clients to
    upload files from a webform to the web server.

    Using the code
    "filename.PostedFile.SaveAs(fullPath);"
    I have no problem uploading file with size up to 25MB, but the page starts
    to create problem with any size above 25 MB - the error message displayed is
    "Server Unavailable" or occasionally it just dies off.

    I am running the web server using ASP.net framework 1.0 developed using C#

    In the Application Log of the machine's event viewer, I get these message:

    Event Type: Error
    Event Source: ASP.NET 1.0.3705.288
    Event Category: None
    Event ID: 1003
    Date: 6/26/2003
    Time: 10:45:47 AM
    User: N/A
    Computer: ROSIE
    Description:
    aspnet_wp.exe (PID: 2108) was recycled because it was suspected to be in a
    deadlocked state. It did not send any responses for pending requests in the
    last 180 seconds.

    Event Type: Error
    Event Source: ASP.NET 1.0.3705.288
    Event Category: None
    Event ID: 1001
    Date: 6/26/2003
    Time: 9:54:35 AM
    User: N/A
    Computer: ROSIE
    Description:
    aspnet_wp.exe (PID: 1532) was recycled because memory consumption exceeded
    the 306 MB (60 percent of available RAM).

    I'd set the following value on Web.Config, but it still doesn't work:
    <httpRuntime maxRequestLength="153600" />

    Anyone know how to go around this problem? The uploaded file size could be
    up to 150MB in size.

    Cheers
    Rosie Chua


    Rosie Chua Guest

  2. Similar Questions and Discussions

    1. Web Service: Uploading files and setting file security on a file server
      I have written a web service that provides the following methods: UploadFile SetNTFSSecurity Their purpose is to allow a user to Upload a file...
    2. Problems: uploading files have Chinese named files
      Hi everyone, I try to upload file by using asp.net, code like that: <script language="VB" runat="server"> Sub Upload(Source As Object, e As...
    3. Uploading files to server from Flash using php
      Hi. We have an Flash-application, running as exe-file. It uses a lot og php pages to get/send some information to server. The user can enter some...
    4. uploading fiels from one unix server to another server usin perl cgi script.
      Hi all, I have a task at hand , that of uplaoding file from server to another server and also pass 6 paramteres along with the file. ...
  3. #2

    Default Re: Uploading files up to 150MB onto server

    I suspect that the upload is gobbling up the server's memory because the
    content isn't being flushed to disk as it streams. You might want to
    investigate a commercial upload component for this kind of task:

    [url]http://www.asp.net/ControlGallery/default.aspx?Category=40&tabindex=2[/url]

    Ken

    "Rosie Chua" <rchua@learningfast.com.au> wrote in message
    news:bddhc4$pi0$1@towncrier.its.monash.edu.au...
    Dear all,

    I am running an online file management server that allows web clients to
    upload files from a webform to the web server.

    Using the code
    "filename.PostedFile.SaveAs(fullPath);"
    I have no problem uploading file with size up to 25MB, but the page starts
    to create problem with any size above 25 MB - the error message displayed is
    "Server Unavailable" or occasionally it just dies off.

    I am running the web server using ASP.net framework 1.0 developed using C#

    In the Application Log of the machine's event viewer, I get these message:

    Event Type: Error
    Event Source: ASP.NET 1.0.3705.288
    Event Category: None
    Event ID: 1003
    Date: 6/26/2003
    Time: 10:45:47 AM
    User: N/A
    Computer: ROSIE
    Description:
    aspnet_wp.exe (PID: 2108) was recycled because it was suspected to be in a
    deadlocked state. It did not send any responses for pending requests in the
    last 180 seconds.

    Event Type: Error
    Event Source: ASP.NET 1.0.3705.288
    Event Category: None
    Event ID: 1001
    Date: 6/26/2003
    Time: 9:54:35 AM
    User: N/A
    Computer: ROSIE
    Description:
    aspnet_wp.exe (PID: 1532) was recycled because memory consumption exceeded
    the 306 MB (60 percent of available RAM).

    I'd set the following value on Web.Config, but it still doesn't work:
    <httpRuntime maxRequestLength="153600" />

    Anyone know how to go around this problem? The uploaded file size could be
    up to 150MB in size.

    Cheers
    Rosie Chua



    Ken Cox [Microsoft MVP] Guest

  4. #3

    Default Re: Uploading files up to 150MB onto server

    You need a script or component that accepts the uploaded file and streams it
    to disk, rather than holding it in memory first. It would be fairly easy to
    write such a thing, using basic TCP sockets to accept the HTTP request, then
    the IO stuff to write it to disk.

    -- russ

    "Rosie Chua" <rchua@learningfast.com.au> wrote in message
    news:bddhc4$pi0$1@towncrier.its.monash.edu.au...
    > Dear all,
    >
    > I am running an online file management server that allows web clients to
    > upload files from a webform to the web server.
    >
    > Using the code
    > "filename.PostedFile.SaveAs(fullPath);"
    > I have no problem uploading file with size up to 25MB, but the page starts
    > to create problem with any size above 25 MB - the error message displayed
    is
    > "Server Unavailable" or occasionally it just dies off.
    >
    > I am running the web server using ASP.net framework 1.0 developed using C#
    >
    > In the Application Log of the machine's event viewer, I get these message:
    >
    > Event Type: Error
    > Event Source: ASP.NET 1.0.3705.288
    > Event Category: None
    > Event ID: 1003
    > Date: 6/26/2003
    > Time: 10:45:47 AM
    > User: N/A
    > Computer: ROSIE
    > Description:
    > aspnet_wp.exe (PID: 2108) was recycled because it was suspected to be in
    a
    > deadlocked state. It did not send any responses for pending requests in
    the
    > last 180 seconds.
    >
    > Event Type: Error
    > Event Source: ASP.NET 1.0.3705.288
    > Event Category: None
    > Event ID: 1001
    > Date: 6/26/2003
    > Time: 9:54:35 AM
    > User: N/A
    > Computer: ROSIE
    > Description:
    > aspnet_wp.exe (PID: 1532) was recycled because memory consumption
    exceeded
    > the 306 MB (60 percent of available RAM).
    >
    > I'd set the following value on Web.Config, but it still doesn't work:
    > <httpRuntime maxRequestLength="153600" />
    >
    > Anyone know how to go around this problem? The uploaded file size could be
    > up to 150MB in size.
    >
    > Cheers
    > Rosie Chua
    >
    >

    Russ Bishop Guest

  5. #4

    Default Re: Uploading files up to 150MB onto server

    Sorry, I don't have the time to write the component for free. Besides, you'd
    learn a lot more by doing it yourself. I suggest doing some tutorials for
    socket programming on the web, then some for writing files. Combine the two.

    -- russ

    "Rosie Chua" <rchua@learningfast.com.au> wrote in message
    news:bddqm4$u6k$1@towncrier.its.monash.edu.au...
    > Russ,
    >
    > Thanks heaps for your reply. Can you please provide more details, or the
    > sample code? Thanks again.
    >
    > Rosie
    >
    > "Russ Bishop" <nowhere> wrote in message
    > news:%23wAGJR5ODHA.1364@TK2MSFTNGP10.phx.gbl...
    > > You need a script or component that accepts the uploaded file and
    streams
    > it
    > > to disk, rather than holding it in memory first. It would be fairly easy
    > to
    > > write such a thing, using basic TCP sockets to accept the HTTP request,
    > then
    > > the IO stuff to write it to disk.
    > >
    > > -- russ
    > >
    > > "Rosie Chua" <rchua@learningfast.com.au> wrote in message
    > > news:bddhc4$pi0$1@towncrier.its.monash.edu.au...
    > > > Dear all,
    > > >
    > > > I am running an online file management server that allows web clients
    to
    > > > upload files from a webform to the web server.
    > > >
    > > > Using the code
    > > > "filename.PostedFile.SaveAs(fullPath);"
    > > > I have no problem uploading file with size up to 25MB, but the page
    > starts
    > > > to create problem with any size above 25 MB - the error message
    > displayed
    > > is
    > > > "Server Unavailable" or occasionally it just dies off.
    > > >
    > > > I am running the web server using ASP.net framework 1.0 developed
    using
    > C#
    > > >
    > > > In the Application Log of the machine's event viewer, I get these
    > message:
    > > >
    > > > Event Type: Error
    > > > Event Source: ASP.NET 1.0.3705.288
    > > > Event Category: None
    > > > Event ID: 1003
    > > > Date: 6/26/2003
    > > > Time: 10:45:47 AM
    > > > User: N/A
    > > > Computer: ROSIE
    > > > Description:
    > > > aspnet_wp.exe (PID: 2108) was recycled because it was suspected to be
    > in
    > > a
    > > > deadlocked state. It did not send any responses for pending requests
    in
    > > the
    > > > last 180 seconds.
    > > >
    > > > Event Type: Error
    > > > Event Source: ASP.NET 1.0.3705.288
    > > > Event Category: None
    > > > Event ID: 1001
    > > > Date: 6/26/2003
    > > > Time: 9:54:35 AM
    > > > User: N/A
    > > > Computer: ROSIE
    > > > Description:
    > > > aspnet_wp.exe (PID: 1532) was recycled because memory consumption
    > > exceeded
    > > > the 306 MB (60 percent of available RAM).
    > > >
    > > > I'd set the following value on Web.Config, but it still doesn't work:
    > > > <httpRuntime maxRequestLength="153600" />
    > > >
    > > > Anyone know how to go around this problem? The uploaded file size
    could
    > be
    > > > up to 150MB in size.
    > > >
    > > > Cheers
    > > > Rosie Chua
    > > >
    > > >
    > >
    > >
    >
    >

    Russ Bishop Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139