YAFLogo

elcurto
  • elcurto
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
13 years ago
I am using YAF 1.9.3 and our users cannot upload a file bigger than 4 mb. I get the following error:

System.Web.HttpException: Maximum request length exceeded.

at System.Web.HttpRequest.GetEntireRawContent()

at System.Web.HttpRequest.GetMultipartContent()

at System.Web.HttpRequest.FillInFormCollection()

at System.Web.HttpRequest.get_Form()

at System.Web.HttpRequest.get_HasForm()

at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)

at System.Web.UI.Page.DeterminePostBackMode()

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

After some research I have found that there is a limit in .net of 4 mb. On the server I am using ASP.NET 2.0 and in the file “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config.comments” I changed the tags as follows:

executionTimeout="190"

maxRequestLength="11000"

I expected that this would solve my problem, but I still cannot upload files larger than 4 mb.

Does anyone have a solution to my problem?

Thanks

Sponsor

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
13 years ago
Not really a YAF issue. I suggest looking at ASP.NET configuration sites or posting on the ASP.NET forums.