httpRuntime - MaxRequestLength - 404 error

  • Thread starter Thread starter Goncalo
  • Start date Start date
G

Goncalo

Hi.

I'm having a problem uploading a file in asp.net.

In Web.config file, httpRuntime as the default
MaxRequestLength to 4 Mbytes.

Then I upload a 5 MByte file.
IIS protects itself and shows an 404 - File Not Found
Exception.

How can I overload this? Can I redirect to a diferent
page? Can I display a message saying that the file is too
big?

Thank's in advance
goncalo
 
Ok. That works.

I have another question, maybe you can help me.

httpRequest definition as an enable property
set at URL: http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpgenref/html/gngrfhttpruntimesection.asp

and its default value is true. When 'false', the result
expected, and I quote "Specifies that the App Domain be
disabled. The application is not loaded in memory and any
client request will cause a 404 error to be issued."

But, when in my web.config file I set the enable to true
ou false .net gives an Parser Error Message: Unrecognized
attribute 'enable'.

Help needed.
gonca
 
Back
Top