473,748 Members | 2,574 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Upload file with big size (over 130 MBytes) in ASP.NET. Please help!

Hi all,

I developed an web page in ASP.NET to upload file into the server. In the
Web.config file, I declared
<httpRuntime executionTimeou t="1200" maxRequestLengt h="400000" />

The MAX length is 129M or more for each file upload. I have 2 files
upload at the same time. Therefore, I set the timeout is 20min and the size
of file upload is 390MB (400,000 KBytes).

I've tried the file upload in 3 servers. One server accepted 2 file
(129MBytes for each) upload at the same time. The time to process was 3-4
minutes. In the other two servers, the upload didn't perform well. The
page kept running for over 30 minutes and nothing happened. I closed the
browser beacuse I was afraid it could bring the server down.

I don't know the way I was doing is right or wrong ? Please give me your
advises to upload the files with the big size like this.

Thank you

Mar 2 '07 #1
4 11120
On Mar 2, 5:15 pm, "bienwell" <bienw...@hotma il.comwrote:
Hi all,

I developed an web page in ASP.NET to upload file into the server. In the
Web.config file, I declared
<httpRuntime executionTimeou t="1200" maxRequestLengt h="400000" />

The MAX length is 129M or more for each file upload. I have 2 files
upload at the same time. Therefore, I set the timeout is 20min and the size
of file upload is 390MB (400,000 KBytes).
First of all, 1 MB = 1,0242^2

Plus you have to have some more because of the post header

I've tried the file upload in 3 servers. One server accepted 2 file
(129MBytes for each) upload at the same time. The time to process was 3-4
minutes. In the other two servers, the upload didn't perform well. The
page kept running for over 30 minutes and nothing happened. I closed the
browser beacuse I was afraid it could bring the server down.
because of ASP.NET health monitoring, you cannot upload very large
files in ASP.NET. The ASP.NET worker process has a virtual address
space of 2 gigabytes (GB). However, the ASP.NET worker process only
uses a little more than 1 GB because of health monitoring and memory
fragmentation.

During the upload process, ASP.NET loads the whole file in memory
before the user can save the file to the disk. Therefore, the process
may recycle because of the memoryLimit attribute of the processModel
tag in the Machine.config file. The memoryLimit attribute specifies
the percentage of physical memory that the ASP.NET worker process can
exhaust before the process is automatically recycled. Recycling
prevents memory leaks from causing ASP.NET to crash or to stop
responding.

Additionally, other factors play a role in the maximum file size that
can be uploaded. These factors include available memory, available
hard disk space, processor speed, and current network traffic. With
regular traffic of files being uploaded,

Microsoft recommends that you use a maximum file size in the range of
10 to 20 megabytes (MB). If you rarely upload files, the maximum file
size may be 100 MB.

http://support.microsoft.com/kb/295626

Mar 2 '07 #2
If this is going to be a process that needs to be robust, I'd suggest you
look for alternatives to HTTP POST to get those huge files to your server.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"bienwell" wrote:
Hi all,

I developed an web page in ASP.NET to upload file into the server. In the
Web.config file, I declared
<httpRuntime executionTimeou t="1200" maxRequestLengt h="400000" />

The MAX length is 129M or more for each file upload. I have 2 files
upload at the same time. Therefore, I set the timeout is 20min and the size
of file upload is 390MB (400,000 KBytes).

I've tried the file upload in 3 servers. One server accepted 2 file
(129MBytes for each) upload at the same time. The time to process was 3-4
minutes. In the other two servers, the upload didn't perform well. The
page kept running for over 30 minutes and nothing happened. I closed the
browser beacuse I was afraid it could bring the server down.

I don't know the way I was doing is right or wrong ? Please give me your
advises to upload the files with the big size like this.

Thank you

Mar 2 '07 #3
On Fri, 2 Mar 2007 11:15:12 -0500, bienwell wrote:
Hi all,

I developed an web page in ASP.NET to upload file into the server. In the
Web.config file, I declared
<httpRuntime executionTimeou t="1200" maxRequestLengt h="400000" />

The MAX length is 129M or more for each file upload. I have 2 files
upload at the same time. Therefore, I set the timeout is 20min and the size
of file upload is 390MB (400,000 KBytes).

I've tried the file upload in 3 servers. One server accepted 2 file
(129MBytes for each) upload at the same time. The time to process was 3-4
minutes. In the other two servers, the upload didn't perform well. The
page kept running for over 30 minutes and nothing happened. I closed the
browser beacuse I was afraid it could bring the server down.

I don't know the way I was doing is right or wrong ? Please give me your
advises to upload the files with the big size like this.

Thank you
Personally for such large files I'd try as a first resort to use FTP to do
the transfers
--
Bits.Bytes
http://bytes.thinkersroom.com
Mar 3 '07 #4
"Rad [Visual C# MVP]" <no****@nospam. comwrote in message
news:1b******** *******@thinker sroom.com...
Personally for such large files I'd try as a first resort to use FTP to do
the transfers
Me too...
Mar 3 '07 #5

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

Similar topics

3
11762
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a table in MySQL with the path & filename to the image. I have successfully uploaded and performed an update query on the database, but the problem I have is I cannot retain the primary key field in a variable which is then used in a SQL update...
4
6009
by: Joe | last post by:
Hello, I have IIS 6.0 running on w2k3 Enterprise. I have three upload forms 1 to have restricted uploads .asp 2 to upload plain .asp any extension 3 a FP form upload non .asp
18
4349
by: Jen | last post by:
I'm using Microsoft's own VB.NET FTP Example: http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 I can get the program to create directories, change directories, etc., but I can't get it to upload a file to the FTP server. I just get a "Cannot connect to remote server" error after this TRY: s = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
9
20898
by: 8anos | last post by:
Hello, I am new at the community and newbie at programming :) As you may know rapidshare provides a perl script for linux, to upload files at their servers. You can find the original scripts at rapidshare news : http://images.rapidshare.com/software/rsapi.pl If you test it you will see that you can upload one file at time. I try to modify it in that way that script can read a text file with the names of the files i want to...
0
1781
by: foekall | last post by:
I used this script and test on my hosting. Evertimes appear "change permission to 777 failed. ". So, how to solve this error. Please kindly check for me and teach me. <?php $MAX_SIZE = 2000000;
0
1997
by: aris1234 | last post by:
hello.. How to upload image file in page update ..?? i have logic like this : if user upload new image then old image must delete and update DB used new name if user not upload new image then old image no delete. code form like this (i dontknow this code right or wrong, please correction if wrong) :
2
2159
by: Event Horizon | last post by:
Hi, I'm trying to add an simple upload applet to shopping cart script. My new applet form sends all needed post fields ( quantity, product, etc... ) but the "file" post field is hardcoded in applet. Shop script works with : <input type="file" name="id"/> but not with applet's: <input type="file" name="SourceFile_1"/> I just cannot figure out how to fix this :(
2
2917
by: hotflash | last post by:
Hi Master CroCrew, I found a good PURE ASP that will allow you to upload 10MB file to the server and the file contents such as Network, Author, Title, etc... will insert to MS Access at the same time. Below is a working script that I used. Let's say after the file is uploaded to the server and a record created with the file contents above to the MS Access (using the script below). If I want to UPDATE that record let's say, change the...
10
11750
by: Devang | last post by:
Hello, I am using php script to upload file. some times if file size is too big(1GB) it takes too much time to upload. Can someone suggest me the way to increase upload speed. thanks
0
8996
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
9562
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9386
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...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8255
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
6799
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
6078
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
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3319
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

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.