System.Web.HttpException (0x80004005): Maximum request length exceeded.

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
7/15/2013 9:48:59 PM
Gravatar
Total Posts 53

System.Web.HttpException (0x80004005): Maximum request length exceeded.

Hi Joe

I am consistently getting this error in my log file when trying to upload images and files that are greater than 4Mb - I tested with a file smaller than 4Mb and it uploaded, with a file 5Mb, it won't upload. I have followed your instructions at https://www.mojoportal.com/supporting-large-file-uploads.aspx and also got someone else to check my changes. We are running in Full Trust.

These are my neatupload settings in my Web.Config (I changed the maxNormalRequestLength as per another forum post).

<neatUpload useHttpModule="true" maxNormalRequestLength="25600" maxRequestLength="2097151" multiRequestUploadHandlerUrl="~/NeatUpload/MultiRequestUploadHandler.ashx" maxUploadRate="300" xmlns="http://www.brettle.com/neatupload/config/2008"></neatUpload>

I also made the IIS 7.0 changes:

%windir%\system32\inetsrv\appcmd set config "MySite/MyApp" -section:requestFiltering -requestLimits.maxAllowedContentLength:104857600 -commitpath:apphost

I am obviously missing something. Any clue what it could be?

7/15/2013 10:52:04 PM
Gravatar
Total Posts 53

Re: System.Web.HttpException (0x80004005): Maximum request length exceeded.

Just to add to the confusion, the above error was on our test server. On our production server I am getting a different error message:

Brettle.Web.NeatUpload.NonfilePortionTooLargeException: Nonfile portion > 4194304 bytes

I searched the forums and found posts about this error, but I couldn't find any fix.

7/16/2013 11:28:57 AM
Gravatar
Total Posts 18439

Re: System.Web.HttpException (0x80004005): Maximum request length exceeded.

Hi,

NeatUpload is no longer used in mojoPortal. If you are using the latest version you should make sure you have no more references to NeatUpload in the Web.config file. It has been removed from the Web.config file that ships with mojoPortal. When you upgrade you should use the latest Web.config file and re-apply any customizations such as the machine key from your old one.

You can also remove the Brettle.Web.NeatUpload.dll from the /bin folder

Hope that helps,

Joe

7/17/2013 12:50:33 AM
Gravatar
Total Posts 53

Re: System.Web.HttpException (0x80004005): Maximum request length exceeded.

I'm not entirely sure how I got that old web.config file but that was the issue. I did just as you suggested and the large files upload now with no errors. I did check the forums but was obviously looking at old posts.

Once again, thanks very much Joe.

You must sign in to post in the forums. This thread is closed to new posts.