Question : ASP.NET Error: The page was not displayed because the request entity is too large.

Greetings,

I'm running ASP.NET 3.5 on a high-end server with SQL Server 2008 and Windows Server 2008 R2 (64 bits). The pages are all served through HTTPS.

I occationally (many times a day) get the error: "The page was not displayed because the request entity is too large." The error is sporadic. If, right after receiving the error, I request the identical page it will most likely pull up fine.

I tried changing the uploadreadaheadsize in the foolowing way: cscript adsutil.vbs set w3svc/1/uploadreadaheadsize 204800. However, I'm still seeing the error. I had an almost identifical system and it did not generate this error. I tried setting the uploadreadaheadsize really low on that system, but it did not start generating the error.

Your help in this matter is GREATLY appeciated.

Thanks!

Answer : ASP.NET Error: The page was not displayed because the request entity is too large.

Are you uploading files ?

From TecNet
"413-Request Entity Is Too Large

For security reasons, you can limit the size of the entity-body of an HTTP request by modifying the MaxRequestEntityAllowed metabase property. When an entity-body of a client request exceeds the size that is specified in the MaxRequestEntityAllowed property, IIS returns a 413 error. If this error is logged for an individual request, an application on the Web server might have encountered an unexpected event and generated a request that is too large. If this error is logged for many requests, a malicious user might be attempting to compromise your Web server"

Ref : http://technet.microsoft.com/en-gb/library/cc758476%28WS.10%29.aspx

http://lk-tech.blogspot.com/2009/04/increase-upload-file-size-in-iis-70.html

Random Solutions  
 
programming4us programming4us