473,395 Members | 1,846 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,395 software developers and data experts.

Uploading files larger than 4Mb

Hello

I've an ASP.NET Web application that has one form where the user can upload
a file to be sent and saved on a database. The app sends the file via DIME
attachments and SOAP envelopes to a Web Service that reads that package and
records the file on a specific record in a database.

It all goes well when my files are smaller than 4Mb.
Files larger than that origins a error message of "File extends size limits"
or something like that

I know that .NET has file size limitations and search on you web page for the
solution that arrives in the form of a code to add to my app web config....
the code is the following

<httpRuntime
executionTimeout="150"
maxRequestLength="11264"
seFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100"
/>

Doing this on just my ASP.NET Web app the result is the same error...
But if I include it on my Web Service's Web.Config file it sents back a
different error: something like "HTTP 400... Bad request"
When doing debug i noticed that execution never enters my web service in the
method called... it allways sents the error first.

Can you assist me here?!?!
How can I force my web service to receive files larger that 4Mb

best regards
Jorge Ribeiro

Nov 19 '05 #1
1 2570
During upload or download, depending on the configuration of the computer,
the IIS Process may process the data, or the data may be buffered in memory.
When the file is large, the data is buffered in memory during communication
between these two processes. This may cause an increase in the memory
utilization on the web server and affect the performance and may even crash.

You can use streaming to workaround this problem. You can design a class
(that implement the IHttpHandler Interface) that Streams a file uploaded in
an HttpContext.Request to disk, without first buffering the entire file to
web server memory.

If you do not want to implement the class yourself, the FMS Total .NET
Sourcebook has code to do this, and much, much,
more. Please visit: http://www.fmsinc.com/dotnet/SourceBook/
--
Gopal Rangaswamy
Microsoft Certified Solutions Developer
FMS, Inc.
<http://www.fmsinc.com/consulting>

"Jorge Ribeiro" <Jo**********@discussions.microsoft.com> wrote in message
news:65**********************************@microsof t.com...
Hello

I've an ASP.NET Web application that has one form where the user can upload a file to be sent and saved on a database. The app sends the file via DIME
attachments and SOAP envelopes to a Web Service that reads that package and records the file on a specific record in a database.

It all goes well when my files are smaller than 4Mb.
Files larger than that origins a error message of "File extends size limits" or something like that

I know that .NET has file size limitations and search on you web page for the solution that arrives in the form of a code to add to my app web config.... the code is the following

<httpRuntime
executionTimeout="150"
maxRequestLength="11264"
seFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100"
/>

Doing this on just my ASP.NET Web app the result is the same error...
But if I include it on my Web Service's Web.Config file it sents back a
different error: something like "HTTP 400... Bad request"
When doing debug i noticed that execution never enters my web service in the method called... it allways sents the error first.

Can you assist me here?!?!
How can I force my web service to receive files larger that 4Mb

best regards
Jorge Ribeiro

Nov 19 '05 #2

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

Similar topics

2
by: Federico | last post by:
Hello, I have a problem: I want to increase the "upload_max_filesize" to upload bigger than 2Mb files. I have modified the php.ini file, but php continues applying the previos 2Mb limit. What...
1
by: renatoa | last post by:
I have an application that works fine in Windows 2000 IIS, uploading files of any size to a server folder The same application installed in a Windows 2003 IIS limits the upload size to approx 200...
3
by: Mike | last post by:
Hi i have a problem in asp.ne i am uploading file to the server using htmlinput controls and every thing is o but i try to upload larger file to the server like more than 4 mb and about 10mb i got...
4
by: msnews.microsoft.com | last post by:
Hi, I hope we can upload only files with limited size through ASP scripts(<2MB). I need to write an ASP script that can serve up to 100MB of file uploading. I have written one script(with...
1
by: Phong Pham | last post by:
I'm creating a web page to upload files, but I'm having a problem uploading files larger than about 3.5 mb. Anything smaller than 3.5 mb is ok. If the file is larger, it doesn't generate an error,...
1
by: Steven Berkovitz | last post by:
Hi there, I am having a problem with an ASP.NET 1.1 application running on II6. When uploading large files, the attempt seems to timeout (in the form of a IE DNS error) after about a minute...
4
by: Rob Meade | last post by:
Dear all, We have purchased a product called SA-FileUp which we have used in our organisation for a number of years, I'm quite an an avid supporter of it, recently I've been trying to ensure...
5
by: Silencet | last post by:
Hey every one, I've recently set up a site using http/php and have been studing php for a while, i've got a problem of trying to upload a video, i cam to this site, because alot of my C++...
2
by: Zoliq | last post by:
Hi, I have a serious problem. I'm currently developing an application in which the user should upload many files (600-700 xml files). I've searched the web for a while and so far I realized that...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
0
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,...
0
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...
0
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...

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.