Error When uploading product image, details enclosed

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Error When uploading product image, details enclosed

Post by William_firefold » Fri Aug 21, 2009 12:50 pm

I am trying to upload assets images to products on a fresh install of 7.0.3 with minimal mods. Once I have chosen the image to upload and hit the upload button to send it through, I get this error:

Code: Select all

Server Error in '/' Application.
Maximum request length exceeded.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Maximum request length exceeded.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Maximum request length exceeded.]
   System.Web.HttpRequest.GetEntireRawContent() +8768242
   System.Web.HttpRequest.GetMultipartContent() +62
   System.Web.HttpRequest.FillInFormCollection() +168
   System.Web.HttpRequest.get_Form() +68
   System.Web.HttpRequest.get_HasForm() +8723223
   System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +97
   System.Web.UI.Page.DeterminePostBackMode() +63
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +133
I got one image to go through, but it seems to me there is a buffer or something which is not big enough. Any ideas?

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Error When uploading product image, details enclosed

Post by AbleMods » Mon Aug 24, 2009 12:08 pm

Modify your web.config file. Locate the <System.Web> and add the following right below it:

Code: Select all

    <httpRuntime maxRequestLength="16384" />
Make sure there isn't an httpruntime tag somewhere in the file first, just in case.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply