Login Register
Code2night
  • Home
  • Blog Archive
  • Tutorial
  • Interview Q&A
  • Languages
    • Angular
    • C
    • c#
    • C#
    • HTML/CSS
    • Java
    • JavaScript
    • Node.js
    • Python
    • React
    • Security
    • SQL Server
    • TypeScript
  • Post Blog
  • Tools
    • JSON Beautifier
    • HTML Beautifier
    • XML Beautifier
    • CSS Beautifier
    • JS Beautifier
    • PDF Editor
    • Word Counter
    • Base64 Encode/Decode
    • Diff Checker
    • JSON to CSV
    • Password Generator
    • SEO Analyzer
  1. Home
  2. Blog
  3. Status Code 413 Request Entity Too Large

Status Code 413 Request Entity Too Large

Date- Jul 02,2023

4656

AspNet MVC

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.

S
Shubham Batra
Programming author at Code2Night — sharing tutorials on ASP.NET, C#, and more.
View all posts →

Related Articles

Translating Website Data Using Azure Translator API in ASP.NET MVC
Feb 01, 2025
How to Convert Text to Speech in Asp.Net
Nov 06, 2023
How to export table data in pdf using itextsharp in asp.net mvc
Sep 16, 2023
How to generate pdf using itextsharp in asp.net mvc
Aug 06, 2023

Comments

Contents

More in ASP.NET MVC

  • Implement Stripe Payment Gateway In ASP.NET 58610 views
  • Jquery Full Calender Integrated With ASP.NET 39528 views
  • Microsoft Outlook Add Appointment and Get Appointment using … 27457 views
  • How to implement JWT Token Authentication and Validate JWT T… 25159 views
  • Payumoney Integration With Asp.Net MVC 23107 views
View all ASP.NET MVC posts →

Tags

AspNet C# programming AspNet MVC c programming AspNet Core C software development tutorial MVC memory management Paypal coding coding best practices data structures programming tutorial tutorials object oriented programming Slick Slider StripeNet
Free Download for Youtube Subscribers!

First click on Subscribe Now and then subscribe the channel and come back here.
Then Click on "Verify and Download" button for download link

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

Please Subscribe to support us

Thank you for Downloading....!

Please Subscribe to support us

Continue with Downloading
Be a Member
Join Us On Whatsapp
Code2Night

A community platform for sharing programming knowledge, tutorials, and blogs. Learn, write, and grow with developers worldwide.

Panipat, Haryana, India
info@code2night.com
Quick Links
  • Home
  • Blog Archive
  • Tutorials
  • About Us
  • Contact
  • Privacy Policy
  • Terms & Conditions
  • Guest Posts
  • SEO Analyzer
Free Dev Tools
  • JSON Beautifier
  • HTML Beautifier
  • CSS Beautifier
  • JS Beautifier
  • Password Generator
  • QR Code Generator
  • Hash Generator
  • Diff Checker
  • Base64 Encode/Decode
  • Word Counter
  • SEO Analyzer
By Language
  • Angular
  • C
  • c#
  • C#
  • HTML/CSS
  • Java
  • JavaScript
  • Node.js
  • Python
  • React
  • Security
  • SQL Server
  • TypeScript
© 2026 Code2Night. All Rights Reserved.
Made with for developers  |  Privacy  ·  Terms
Translate Page