0

I have a c# application which is giving an error

The page was not displayed because the request entity is too large

This has hosted in three servers but there is no such large files in the application folder in hosted servers.It gives the same error from different pages but the pages have simple insert functionality .

Is there, any way to solve this problem?

Rahul Singh
  • 21,585
  • 6
  • 41
  • 56
Soumen Halder
  • 117
  • 1
  • 13
  • Possible Duplicate? http://stackoverflow.com/questions/22762311/the-page-was-not-displayed-because-the-request-entity-is-too-large-iis7 – Sorrel Vesper Oct 14 '15 at 06:56
  • I tried this earlier , but it gives an error and application dose not running well, when I added , it fires error. @sorrel Vesper – Soumen Halder Oct 14 '15 at 07:04
  • The question has been answered on another site as well. I will just copy paste the solution here: Setting uploadReadAheadSize in applicationHost.config file on IIS7.5 would resolve your issue in both cases. you can modify this value directly in applicationhost.config – Sorrel Vesper Oct 14 '15 at 07:07
  • For reference: http://forums.asp.net/t/1574804.aspx?HTTPS+413+The+page+was+not+displayed+because+the+request+entity+is+too+large+ – Sorrel Vesper Oct 14 '15 at 07:08
  • Do you use WCF ? Because: "WCF by default limits messages to 65KB to avoid denial of service attack with large messages". – Bartosz Kowalczyk Oct 14 '15 at 07:09
  • Thanks I'm trying. @sorrel vesper – Soumen Halder Oct 14 '15 at 07:09
  • Yes WCF is there in the application. This is a vast application, and thousands of files and projects folder are there. but the page from where the issue is happening, it's a simple page. @Bartosz Kowalczyk – Soumen Halder Oct 14 '15 at 07:13
  • Did you check setting uploadReadAheadSize in applicationHost.config file? sorry - I removed rest comment its was about WCF. My bad. Then sorry I don't have any other ideas. – Bartosz Kowalczyk Oct 14 '15 at 07:30
  • thank you all , this is working. – Soumen Halder Oct 14 '15 at 10:32

0 Answers0