Maximum request length exceeded | Code2night.com
Code2night
  • Home
  • Blogs
  • Tutorial
  • Post Blog
  • Members
    • Register
    • Login
  1. Home
  2. Blogpost
18 Jul
2022

Maximum request length exceeded

2687

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.

  • |
  • Max Request Length , AspNet MVC , c#

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 | 671
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