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

Home Posts Topics Members FAQ

Uploading Large Files

I'm using a pure ASP upload script to handle file uploading. We run IIS6 and
I'm aware of the AspMaxRequestEn tityAllowed variable in the metabase. I upped
this to allow the file size maximum and it was working for the past couple
months. Now all of a sudden in the past couple of days we are seeming to have
problems.

The upload works fine for anything up to around 2mb (or so it seems).

When uploading about 20mb worth (10x2mb files), I get the following error
(thrown from firefox). I tried changing Response.Expire s,
Server.ScriptTi meout, and the connection timeout setting for the website in
IIS.

Connection Interrupted
The connection to the server was reset while the page was loading.
The network link was interrupted while negotiating a connection. Please try
again.

When uploading about 2-10mb worth of files, I get an error thrown by ASP.
The error typically just means that AspMaxRequestEn tityAllowed needs to be
increased, but since I've already increased it as high as it can go, I'm
really confused.

Request object error 'ASP 0101 : 80004005'
Unexpected error
/scripts/update/ShadowUploader. asp, line 58
The function returned |.

Line 58: strBinData = Request.BinaryR ead(iBytesCount )
Jul 7 '08 #1
10 8090
" it was working for the past couple months."
If the code was working before, and no code changes have been made, then the problem must be something other than the code.


Jul 7 '08 #2
My thoughts exactly. I didn't necessarily say it was something in the code I
needed to fix. I'm looking for suggestions on anything that could be wrong.
Jul 7 '08 #3
http://classicasp.aspfaq.com/general...01-errors.html

"Dan" <Da*@discussion s.microsoft.com wrote in message news:D2******** *************** ***********@mic rosoft.com...
My thoughts exactly. I didn't necessarily say it was something in the code I
needed to fix. I'm looking for suggestions on anything that could be wrong.

Jul 7 '08 #4
I've already read that article, and many others I searched for off of Google.
I only ask for help when I can't already find it somewhere else.

I'm not using a component - this is a pure ASP file upload.

"Jon Paal [MSMD]" wrote:
http://classicasp.aspfaq.com/general...01-errors.html

"Dan" <Da*@discussion s.microsoft.com wrote in message news:D2******** *************** ***********@mic rosoft.com...
My thoughts exactly. I didn't necessarily say it was something in the code I
needed to fix. I'm looking for suggestions on anything that could be wrong.


Jul 7 '08 #5

since the error message is coming from the request object, you're going to have to some debugging by testing uploads of different
types and sizes to better isolate and establish a repeatable cause of the error source.

Your previous testing of 2-10mb file sizes is a wide range, if the error is not consistently happening above one size perhaps it is
the type. otherwsie youi're faced with chasing the problem outside of ASP which is dependent on iis, memory etc.



"Dan" <Da*@discussion s.microsoft.com wrote in message news:B3******** *************** ***********@mic rosoft.com...
I've already read that article, and many others I searched for off of Google.
I only ask for help when I can't already find it somewhere else.

I'm not using a component - this is a pure ASP file upload.

"Jon Paal [MSMD]" wrote:
>http://classicasp.aspfaq.com/general...01-errors.html

"Dan" <Da*@discussion s.microsoft.com wrote in message news:D2******** *************** ***********@mic rosoft.com...
My thoughts exactly. I didn't necessarily say it was something in the code I
needed to fix. I'm looking for suggestions on anything that could be wrong.



Jul 8 '08 #6
I'm pretty well sure it's anything above ~6mb, which is just an odd figure,
since I have no limits set.

"Jon Paal [MSMD]" wrote:
>
since the error message is coming from the request object, you're going to have to some debugging by testing uploads of different
types and sizes to better isolate and establish a repeatable cause of the error source.

Your previous testing of 2-10mb file sizes is a wide range, if the error is not consistently happening above one size perhaps it is
the type. otherwsie youi're faced with chasing the problem outside of ASP which is dependent on iis, memory etc.



"Dan" <Da*@discussion s.microsoft.com wrote in message news:B3******** *************** ***********@mic rosoft.com...
I've already read that article, and many others I searched for off of Google.
I only ask for help when I can't already find it somewhere else.

I'm not using a component - this is a pure ASP file upload.

"Jon Paal [MSMD]" wrote:
http://classicasp.aspfaq.com/general...01-errors.html

"Dan" <Da*@discussion s.microsoft.com wrote in message news:D2******** *************** ***********@mic rosoft.com...
My thoughts exactly. I didn't necessarily say it was something in the code I
needed to fix. I'm looking for suggestions on anything that could be wrong.


Jul 8 '08 #7
you may also want to try another component. if another works then you have a solution.

personally, for uploads and especially when they get large, I fall back to ASP.net because uploading is one of the few things
classic ASP just can't offer well by itself. Another option is a third party, registered component, which is a good alternative as
most webhosts have these freely available.
Jul 8 '08 #8
I'm using a pure ASP upload script. I've tried 3 other ones, all get the
same error. I also just used a third party upload component and got the same
error. I may look into ASP.NET, but only as a last resort. There must be a
solution to this, since it was working before :\

Thanks for taking the time to troubleshoot with me though.

"Jon Paal [MSMD]" wrote:
you may also want to try another component. if another works then you have a solution.

personally, for uploads and especially when they get large, I fall back to ASP.net because uploading is one of the few things
classic ASP just can't offer well by itself. Another option is a third party, registered component, which is a good alternative as
most webhosts have these freely available.
Jul 8 '08 #9
"Dan" <Da*@discussion s.microsoft.com wrote in message
news:B7******** *************** ***********@mic rosoft.com...
I'm using a pure ASP upload script to handle file uploading. We run IIS6
and
I'm aware of the AspMaxRequestEn tityAllowed variable in the metabase. I
upped
this to allow the file size maximum and it was working for the past couple
months. Now all of a sudden in the past couple of days we are seeming to
have
problems.

The upload works fine for anything up to around 2mb (or so it seems).

When uploading about 20mb worth (10x2mb files), I get the following error
(thrown from firefox). I tried changing Response.Expire s,
Server.ScriptTi meout, and the connection timeout setting for the website
in
IIS.

Connection Interrupted
The connection to the server was reset while the page was loading.
The network link was interrupted while negotiating a connection. Please
try
again.

When uploading about 2-10mb worth of files, I get an error thrown by ASP.
The error typically just means that AspMaxRequestEn tityAllowed needs to be
increased, but since I've already increased it as high as it can go, I'm
really confused.

Request object error 'ASP 0101 : 80004005'
Unexpected error
/scripts/update/ShadowUploader. asp, line 58
The function returned |.

Line 58: strBinData = Request.BinaryR ead(iBytesCount )
My guess is that iBytesCount is not a chunk size but the total size right.
IOW, you are not chunking the data in but trying to read the whole lot in a
single buffer. OR am I wrong?

--
Anthony Jones - MVP ASP/ASP.NET
Jul 8 '08 #10

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

Similar topics

0
3113
by: Marc | last post by:
Hello, I have a page where i can upload binary file (using the HTML input type=file approach). This works fine for relatively small files (<6MB)) but when files get bigger (13MB) there is a problem. The code of the php file is based upon the article in http://www.onlamp.com/pub/a/php/2000/09/15/php_mysql.html: uploading large binary files using more than one table and more trhan 1 row per file.
9
3330
by: Markus Ernst | last post by:
Hi For a CMS admin tool I would like to provide a possibility to upload large files to a directory on the webserver. As HTTP uploads are limited in file size and also not comfortable in handling, I thought of an FTP solution. Displaying a link to ftp://mydomain.com/mydirectory is easy but limited to browsers who can act as FTP clients, such as Internet Explorer. When looking at PHP's FTP functions and googling for web-based FTP
6
2825
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
3
1975
by: deko | last post by:
Newbie ASP.NET question: Now that I've created an ASP.NET site, how to I get it to my hosting provider? I've developed sites with Dreamweaver MX in the past - with Dreamweaver, it's very easy. The ability to link to the remote site (via FTP) is built into the IDE and all you have to do is click upload. Does Visual Studio have a similar feature? How do most people deploy their sites to a remote server from Visual Studio?
13
4317
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...
1
1754
by: David | last post by:
Hello. I can't upload large file with HtmlInputFile control:( Is there any file size limitation in HtmlInputFile control? If yes how can I upload to server large size file? Than you.
2
2708
by: WSE with SSL and large amount of data | last post by:
Hi there, What's the better strategy for uploading large files trough webservices? I can use Dime/WS-Attachments but for files with over 5MB in size, maybe I got some timeout/refuse problems in my server. Is it a good idea upload the files in chucks? In this case, how can I control and validate the transfering, and ensure the security? As a matter of fact, I have to use standarts for EDI processes. Thanks in advanced.
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"
7
3892
by: Lad | last post by:
If a user will upload large files via FTP protocol, must the user have an FTP client on his computer or is it possible to use a similar way to "http form" comunication? Or is there another way( besides FTP) how to upload large files to server? Thank you he help Lad.
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
8831
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
9552
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
9376
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
9249
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
6796
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
4607
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
3315
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
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
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.