Solved

Post size exceeded allowed limits /  Maximum request length exceeded

Posted on 2012-03-31
3
3,023 Views
Last Modified: 2012-04-24
i have this error and i would like to fix is. Perhaps i should change something in web.config or IIS?

Event code: 3004
Event message: Post size exceeded allowed limits.
Event time: 31-3-2012 21:09:56
Event time (UTC): 31-3-2012 19:09:56
Event ID: 8f339585a6e6405795de5c6dc83e91a0
Event sequence: 38
Event occurrence: 4
Event detail code: 0
 
Process information:
    Process ID: 6432
    Process name: WebDev.WebServer20.exe
    Account name:  
 
Exception information:
    Exception type: HttpException
    Exception message: Maximum request length exceeded.
 
Request information:
    Request URL: http://localhost:1447/Default.aspx 
    Request path: /Default.aspx
    User host address: 127.0.0.1
    User:
    Is authenticated: True
    Authentication Type: NTLM
    Thread account name:
 
Thread information:
    Thread ID: 5
    Thread account name:  
    Is impersonating: False
    Stack trace:    at System.Web.HttpRequest.GetEntireRawContent()
   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)
 
 
Custom event details:
0
Comment
Question by:Amien90
3 Comments
 
LVL 20

Expert Comment

by:Daniel Van Der Werken
ID: 37791726
Here is post on how to do this. Basically, you modify the web.config:
http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx
0
 

Author Comment

by:Amien90
ID: 37791803
Thanks for your reply .. i tried that, but now i get this:
[InvalidOperationException: Operation is not valid due to the current state of the object.]
   System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded() +2690790
   System.Web.HttpValueCollection.FillFromEncodedBytes(Byte[] bytes, Encoding encoding) +61
   System.Web.HttpRequest.FillInFormCollection() +148

[HttpException (0x80004005): The URL-encoded form data is not valid.]
   System.Web.HttpRequest.FillInFormCollection() +206
   System.Web.HttpRequest.get_Form() +68
   System.Web.HttpRequest.get_HasForm() +8736983
   System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +97
   System.Web.UI.Page.DeterminePostBackMode() +63
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +133
0
 
LVL 6

Accepted Solution

by:
shambhusingh2004 earned 500 total points
ID: 37796162
For this error message - you have to look at your DB table or SP.

It looks like that you are passing value from web to DB but these value not exist on DB side.

Example - DB ROW - CHar limit.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question