Status Code 413 Request Entity Too Large | Code2night.com
Code2night
  • Home
  • Blogs
  • Tutorial
  • Post Blog
  • Members
    • Register
    • Login
  1. Home
  2. Blogpost
02 Jul
2023

Status Code 413 Request Entity Too Large

281

Request Entity Too Large

The "Request Entity Too Large" error is a common issue faced by developers and users when dealing with file uploads and large data submissions. This blog post explores the causes behind this error and provides practical solutions to overcome it.

To fix the error you have to go to web config and add following section under node system.webserver


 <security>
	<requestFiltering>
		<requestLimits maxAllowedContentLength="60000000" />
	</requestFiltering>
 </security>

and you have to also add


  <httpRuntime targetFramework="4.7.2" maxRequestLength="60000000" />

So, you can change the request length value to more larger value in case you have large file . This will support file up to 55Mb . So the complete web config may look like this


<system.web>
    <compilation debug="true" targetFramework="4.7.2" />
    <httpRuntime targetFramework="4.7.2" maxRequestLength="60000000" />
  </system.web>
  <system.webServer>
	  <security>
		  <requestFiltering>
			  <requestLimits maxAllowedContentLength="60000000" />
		  </requestFiltering>
	  </security>
    <handlers>
      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
      <remove name="OPTIONSVerbHandler" />
      <remove name="TRACEVerbHandler" />
      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
  </system.webServer>

After adding this now run the application and perform the same steps. This time you will not face error Status Code 413 Request Entity Too Large in Asp.Net MVC.

  • |
  • AspNet MVC , Request Entity Too Large

Comments

Follow Us On Social Media - Like Us On Facebook

Tags

LinkedinLogin
LinkedinProfile
GetLinkedinProfile
C#
Aspnet
MVC
Linkedin
ITextSharp
Export to Pdf
AspNet Core
AspNet
View to Pdf in Aspnet
Model Validation In ASPNET Core MVC 60
Model Validation
Model Validation In ASPNET Core MVC
Model Validation In ASPNET
Image Compression in AspNet
Compress Image in c#
AspNet MVC
Free Download for New Subscribers!

Subscribe and Click on Verify and Download for download link

Subscribe Now | 670
Download
Support Us....!

Please Subscribe to support us

Thank you for Downloading....!

Please Subscribe to support us

Continue with Downloading

Welcome To Code2night, A common place for sharing your programming knowledge,Blogs and Videos

  • Panipat
  • info@Code2night.com

Links

  • Home
  • Blogs
  • Tutorial
  • Post Blog

Popular Tags

Copyright © 2023 by Code2night. All Rights Reserved

  • Home
  • Blog
  • Login
  • SignUp
  • Contact
  • Terms & Conditions
  • Refund Policy
  • About Us
  • Privacy Policy
  • Json Beautifier