Maximum request length exceeded | Code2night.com
Code2night
  • Home
  • Blogs
  • Guest Posts
  • Tutorial
  • Post Blog
  • Register
  • Login
  1. Home
  2. Blogpost

Maximum request length exceeded

Date- Jul 18,2022

6204

Max Request Length AspNet MVC

Maximum Request Size

Request size refers to the total size of request inlcluding uploaded files or attachments that a web applications allows. By default, a Asp.Net web application supports 4MB of request size or you can say the upload of 4 MB file is allowed at max whenever the size exceeds it throws error Maximum request length exceeded. For solving this error go to your web config and add this

 <system.web>
    <compilation debug="true" targetFramework="4.7.2" />
    <httpRuntime targetFramework="4.7.2"  maxRequestLength="1048576" /> 
 </system.web>


So, we have to add maxRequestLength attribute on httpRuntime. This line must always be under System.Web tag in web config. In this you can increase the length size to whatever you want. And the entered value is in kb.

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

Here after adding this in web config, now run your Asp.Net mvc web application . Maximum request length exceeded error should be fixed.

Comments

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 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 | 1190
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 Join Us On Facebook

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 © 2025 by Code2night. All Rights Reserved

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