Solved

Post size exceeded allowed limits /  Maximum request length exceeded

Posted on 2012-03-31
3
3,142 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

726 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