473,395 Members | 1,701 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.

Handling Errors in Large File Uploads


My problem has to do with not being able to have custom
error handlers when the file size exceeds what the IIS is
configured to handle.

I do understand that one can change the attributes:
maxRequestLength (along with the executionTimeout) of the
httpRuntime section in web.config or machine.config to
control how much and (how long) to open up the IIS gates.

However, for the cases when the size is larger than this
configuration, we want to be able to install custom error
handlers. Is it possible to do so (it seems that IIS is
returning a generic error when this happens).

In my opinion this is a bug. Is anything being done to
fix this? Does 6.0 or its patches have anything (we could
use beta versions as well).

Thanks in advance,
Rajeev
Nov 18 '05 #1
2 1064
this has been answered many times. its not a bug in IIS. its a shortcoming
in the HTTP protocol. the upload of an oversized file is stoped by closing
the connection. the browser reports the error anyway it wants, usually as a
failed request.

-- bruce (sqlwork.com)
"Rajeev Tipnis" <rt*****@yahoo.com> wrote in message
news:48****************************@phx.gbl...
|
| My problem has to do with not being able to have custom
| error handlers when the file size exceeds what the IIS is
| configured to handle.
|
| I do understand that one can change the attributes:
| maxRequestLength (along with the executionTimeout) of the
| httpRuntime section in web.config or machine.config to
| control how much and (how long) to open up the IIS gates.
|
| However, for the cases when the size is larger than this
| configuration, we want to be able to install custom error
| handlers. Is it possible to do so (it seems that IIS is
| returning a generic error when this happens).
|
| In my opinion this is a bug. Is anything being done to
| fix this? Does 6.0 or its patches have anything (we could
| use beta versions as well).
|
| Thanks in advance,
| Rajeev
Nov 18 '05 #2

I do not know the details of how the IIS processing
works, but why can't a webserver lookup the configuration
during its pipeline processing - and report (provide a
way to handle this custom error) that the data has
exceeded what has been configured to be received on the
server?

Does HTTP protocol specify that the webserver must close
the connection if the file size exceeds a size that the
web server has been configured to receive?

I've googled around for this information. I likely missed
the technical details on the net. If there have been
technical discussions around this topic (including the
implementations by other webservers - apache and such),
I'd appreciate if you could point me to those.
-----Original Message-----
this has been answered many times. its not a bug in IIS. its a shortcomingin the HTTP protocol. the upload of an oversized file is stoped by closingthe connection. the browser reports the error anyway it wants, usually as afailed request.

-- bruce (sqlwork.com)
"Rajeev Tipnis" <rt*****@yahoo.com> wrote in message
news:48****************************@phx.gbl...
|
| My problem has to do with not being able to have custom
| error handlers when the file size exceeds what the IIS is| configured to handle.
|
| I do understand that one can change the attributes:
| maxRequestLength (along with the executionTimeout) of the| httpRuntime section in web.config or machine.config to
| control how much and (how long) to open up the IIS gates.|
| However, for the cases when the size is larger than this| configuration, we want to be able to install custom error| handlers. Is it possible to do so (it seems that IIS is
| returning a generic error when this happens).
|
| In my opinion this is a bug. Is anything being done to
| fix this? Does 6.0 or its patches have anything (we could| use beta versions as well).
|
| Thanks in advance,
| Rajeev
.

Nov 18 '05 #3

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

Similar topics

34
by: rawCoder | last post by:
I have read that Exception Handling is expensive performance wise ( other than Throw ) , but exactly how ? Please consider the following example ... ////////////////// Code Block 1...
14
by: Al Smith | last post by:
I need help in implementing proper error handling. I am trying to upload a file based on the sample code below. The code works well except if the file selected is too big. I do know about the...
31
by: rawCoder | last post by:
I have read that Exception Handling is expensive performance wise ( other than Throw ) , but exactly how ? Please consider the following example ... ////////////////// Code Block 1...
35
by: jeffc226 | last post by:
I'm interested in an idiom for handling errors in functions without using traditional nested ifs, because I think that can be very awkward and difficult to maintain, when the number of error checks...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...

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.