473,659 Members | 2,526 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Poste dFile.SaveAs(fu llPath);"
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 maxRequestLengt h="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 6991
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***@learning fast.com.au> wrote in message
news:bd******** **@towncrier.it s.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.Poste dFile.SaveAs(fu llPath);"
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 maxRequestLengt h="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***@learning fast.com.au> wrote in message
news:bd******** **@towncrier.it s.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.Poste dFile.SaveAs(fu llPath);"
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 maxRequestLengt h="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***@learning fast.com.au> wrote in message
news:bd******** **@towncrier.it s.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******** ********@TK2MSF TNGP10.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***@learning fast.com.au> wrote in message
news:bd******** **@towncrier.it s.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.Poste dFile.SaveAs(fu llPath);"
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 maxRequestLengt h="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
2823
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 requested file how can I send it directly to a location on a remote webserver following a request from the remote server? The motivation is that I have a large number of image files that are
5
7830
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 files via FTP. I'm using ftplib to do it, and for each file I'm using transfercmd("STOR " + myfile) to get the socket, then uploading 4096 bytes at a time and providing status updates via a GUI interface. Finally, I close the socket, set it to...
3
348
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 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.
13
4297
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 that this is suppossed to end up as a component for others to use, and therefore I do NOT have access to their global.cs::Session_End() how do I cleanup files that were uploaded -- but obviously left stranded when the users aborted/gave up writting...
0
961
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 Login.aspx page, when I click on the submit button, I got the following error. http://server/ABC/OnlineAssessment/Admin/NoAccessAllowed.aspx?aspxerrorpath=/ABC/OnlineAssessment/Admin/UserLogin.aspx
3
2055
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 find this:
221
367404
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 needs to store entire files, the preferred method is to save the file onto the server’s file-system, and store the physical location of the file in your database. This is generally considered to be the easiest and fastest way to store files. ...
1
726
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 uploading the files on the server and experienced the same issues as I get on any other computer. Thanks in advance for your help. Dan
0
2738
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 asp101.com. http://www.asp101.com/articles/jacob/scriptupload.asp My three files are: Syllabus.htm <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8751
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8539
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7360
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4342
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2759
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.