473,761 Members | 7,351 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
executionTimeou t="150"
maxRequestLengt h="11264"
seFullyQualifie dRedirectUrl="f alse"
minFreeThreads= "8"
minLocalRequest FreeThreads="4"
appRequestQueue Limit="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 2613
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.Req uest 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**********@d iscussions.micr osoft.com> wrote in message
news:65******** *************** ***********@mic rosoft.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
executionTimeou t="150"
maxRequestLengt h="11264"
seFullyQualifie dRedirectUrl="f alse"
minFreeThreads= "8"
minLocalRequest FreeThreads="4"
appRequestQueue Limit="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
3134
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 I'm doing wrong, please? Thanks in advance, Federico
1
2140
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 Kb, trying to upload larger files generates an "Operation_not_allowed" error in the web log I suppose that Microsoft introduced some limitation in either the new OS version or IIS but I'm not able to find any reference, except for the 4 Mb...
3
1871
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 server connection lost and time out some no responce is there any solution to that problem using asp.net and c thank
4
1897
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 progress bar ;-)), as my hosting won't allow me any third party upload components. Is there any way we for ASP scripts to make larger file uploads? Thanks in advance,
1
2240
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, it just doesn't do anything. Can anyone show me how to fix that problem? I'm also trying to trap any files larger than 3.5 mb to let the user know that they can't upload files larger than that: If MyUpload.PostedFile.ContentLength > 3500000...
1
2335
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 even though I have adjusted the executionTimeout and maxRequestLength attributes of the httpRuntime element. <httpRuntime executionTimeout="1200" maxRequestLength="20480"
4
1394
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 some of our older applications which used native .Net uploading moved across to our .Net implementation of SA-FileUp. Because there is development time involved in this I have now been asked by my manager to "test" both native and SA techniques to...
5
1429
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++ solutions have been solved here so im guesing the same with php as i've already search for my solution here, but found no answer. i'm doing it the same way you would upload an image, however after hours of searching the web, i've seen that you must change...
2
1484
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 there's no way to use the HtmlInputFile class to achive the desired effect just because I can't set programatically the property of the class that stores the path of the selected file. My first approach was to write some javascript code which would...
0
9522
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
9336
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10111
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...
1
9902
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
9765
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...
1
7327
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
6603
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();...
1
3866
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
3
3446
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.