There are 3 other places you can check and adjust the timeout.
IIS --> Select your Virtual Directory ->Right Click for Properties --> Select Virtual Directory Tab-->Click on Configuration--> Select Options Tab --> Change the default TimeOuts for Session and ASP Script Time out
I think default is 20 and 90 seconds respectively.
In ASP.NET, you can write ScriptTimeOut = xxx seconds as you desire.
I'm not the IIS admin so I can't really make any changes on the server. In addition, I do not want to keep increasing the size because there is always a user who will try to upload a bigger size file.
You do not need to increase the size everytime, if you are using .NET 1.1 then you can put the max size which is 1GB if 2.0 then 2GB, I doubt that any user will try to upload in GB. It will not hurt you to put the max allowable size.
My Signature: Mark a post as answered if it helped you, or don't, it makes no difference to me. Just PLEASE try not to use the word "random" when describing your problem.
FileUp Standard Edition can accept uploads of up to 4 gigabytes. FileUp Enterprise Edition can accept unlimited size uploads. However, when using the product in .NET, it is important to configure the application settings to make sure ASP.NET doesn't block
the large uploads before FileUp can process them.
The maxRequestLength parameter is set in the httpRuntime section of web.config (or machine.config). maxRequestLength is set in kilobytes. So, for example, if you want to allow uploads of 100 MB, you would set maxRequestLength to 102400.
There are some other settings in httpRuntime which you may want to modify for large uploads. Below is an example httpRuntime element. Please adjust the settings according to the needs of your application.
To catch the exception you will need to create a Global.asax file in your root directory, then add the method void Application_Error(object sender, EventArgs e) . The Global.asax file handles all the Application level events for your website... the Application_Error
method will catch all the unhanded exceptions generated by your website.
#1 05-21-2002, 06:37 PM Mark Riordan Posts: n/a Solution to "Maximum request length exceeded." -------------------------------------------------------------------------------- When making a large post, you may see the message: Maximum request length exceeded
There are no references to this on MS's website, or anywhere else that I've seen. However, with the help of the Wrox book "Professional ASP.NET", I have found that by default there is a 4MB post limit. This can be changed in machine.config (entire site) or
web.config (individual app), by changing maxRequestLength: The above example increases the limit to 51200 KB (50 MB).
vishwa
Member
161 Points
47 Posts
Re: Maximum request length exceeded
Apr 11, 2007 12:30 AM|LINK
Try the following link and see if that can resolve the issue.
http://www.vishwamohan.com/Default.aspx?ArticleID=23
There are 3 other places you can check and adjust the timeout.
IIS --> Select your Virtual Directory ->Right Click for Properties --> Select Virtual Directory Tab-->Click on Configuration--> Select Options Tab --> Change the default TimeOuts for Session and ASP Script Time out
I think default is 20 and 90 seconds respectively.
In ASP.NET, you can write ScriptTimeOut = xxx seconds as you desire.
My Web Site and Blog
davidlars99
Member
22 Points
33 Posts
Re: Maximum request length exceeded
Apr 11, 2007 09:45 PM|LINK
Try this: http://www.frozendev.com/temp/fileupload.zip
You can do anything once you get out of the while loop...
mychucky
Contributor
4358 Points
3709 Posts
Re: Maximum request length exceeded
Apr 13, 2007 02:16 PM|LINK
davidlars99
Member
22 Points
33 Posts
Re: Maximum request length exceeded
Apr 13, 2007 09:32 PM|LINK
mychucky, sample project from my web site doesn't require you to be an admin and modify anything in IIS.
Have you actually tried it..?
vishwa
Member
161 Points
47 Posts
Re: Maximum request length exceeded
Apr 14, 2007 02:08 AM|LINK
My Web Site and Blog
davidlars99
Member
22 Points
33 Posts
Re: Maximum request length exceeded
Apr 16, 2007 02:18 PM|LINK
OK. I'm going to repeat this one more time...
In .NET 1.1, there's only one (correct way) way to do this.
In .NET 2.0, this limitation issue has been taken care of...
You can see .NET 1.1 example of a workaround here. In this example, there's also a commented code, implementing the wrong way --> http://www.frozendev.com/temp/FileUpload
And you can also see what Microsoft did to fix this issue --> http://support.microsoft.com/kb/910436
Good luck!
danludwig
Contributor
3020 Points
601 Posts
Re: Maximum request length exceeded
Sep 15, 2007 05:30 PM|LINK
http://blogs.neudesic.com/blogs/john_watson/archive/2007/05/17/6875.aspx
I can't get this to work in Cassini (Visual Studio built-in testing server), but I can get it to work on production IIS:
Server.ClearError();
Response.Redirect(string, false);
Muhammad Eja...
Member
3 Points
1 Post
Re: Maximum request length exceeded
Jan 30, 2008 11:17 AM|LINK
FileUp Standard Edition can accept uploads of up to 4 gigabytes. FileUp Enterprise Edition can accept unlimited size uploads. However, when using the product in .NET, it is important to configure the application settings to make sure ASP.NET doesn't block the large uploads before FileUp can process them.
The maxRequestLength parameter is set in the httpRuntime section of web.config (or machine.config). maxRequestLength is set in kilobytes. So, for example, if you want to allow uploads of 100 MB, you would set maxRequestLength to 102400.
There are some other settings in httpRuntime which you may want to modify for large uploads. Below is an example httpRuntime element. Please adjust the settings according to the needs of your application.
For more information about various ASP.NET application settings which apply to large uploads, see the FileUpEE or FileUpSE documentation:
FileUpEE - Large Uploads in ASP.NET:
http://support.softartisans.com/docs/fileupeev4/doc/dotnet/aspdotnet_largeuploads.asp
FileUpSE - large uploads in ASP.NET:
http://support.softartisans.com/docs/fileupv4/prog_g_dotnet_largeuploads.htm
lali0022
Member
7 Points
2 Posts
Re: Maximum request length exceeded
Jul 18, 2008 06:47 PM|LINK
e) lai0022@gmail.com
anubha.saxen...
Member
120 Points
42 Posts
Re: Maximum request length exceeded
Oct 17, 2008 07:58 AM|LINK
#1 05-21-2002, 06:37 PM Mark Riordan Posts: n/a Solution to "Maximum request length exceeded." -------------------------------------------------------------------------------- When making a large post, you may see the message: Maximum request length exceeded There are no references to this on MS's website, or anywhere else that I've seen. However, with the help of the Wrox book "Professional ASP.NET", I have found that by default there is a 4MB post limit. This can be changed in machine.config (entire site) or web.config (individual app), by changing maxRequestLength: The above example increases the limit to 51200 KB (50 MB).