473,382 Members | 1,665 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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
Jul 19 '05 #1
3 6968
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:

http://www.asp.net/ControlGallery/de...=40&tabindex=2

Ken

"Rosie Chua" <rc***@learningfast.com.au> wrote in message
news:bd**********@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

Jul 19 '05 #2
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" <rc***@learningfast.com.au> wrote in message
news:bd**********@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

Jul 19 '05 #3
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" <rc***@learningfast.com.au> wrote in message
news:bd**********@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:%2****************@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" <rc***@learningfast.com.au> wrote in message
news:bd**********@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



Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Chamomile | last post by:
can anyone point me to some straightforward information on file uploading without using an html form? That is, direcly from within a php script. if I know the local path etc. to a particular...
5
by: Kevin Ollivier | last post by:
Hi all, I've come across a problem that has me stumped, and I thought I'd send a message to the gurus to see if this makes sense to anyone else. =) Basically, I'm trying to upload a series of...
3
by: Rosie Chua | last post by:
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...
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
0
by: Andrew | last post by:
hi all, My app works fine on my localhost. I just uploaded my folders n files containing my aspx files onto the server. My aspx app consumes a webservice also on the same server. In my...
3
by: Dean Richardson | last post by:
Hi, I'm having trouble uploading files via a PHP script. Whenever I upload a file greater than 10K, the file gets corrupted. However, text files upload OK. When I check the FTP Server log I...
221
Atli
by: Atli | last post by:
You may be wondering why you would want to put your files “into” the database, rather than just onto the file-system. Well, most of the time, you wouldn’t. In situations where your PHP application...
1
by: =?Utf-8?B?RGFu?= | last post by:
MS won't seem to let me reply to my old post, so I created a new one. The error occurs in all browsers. It's definitely a server issue, not client. The server is not proxied in any way. I tried...
0
by: LoriFranklin | last post by:
I'm a bit of a newbie here. I've learned a lot from reading the posts you all have here. I need some help uploading files using an asp form. I am using some code that I found from Jacob at...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.