0

I have a upload functionality in my C# MVC application. When i am uploading the file below 3MB, it uplaods succesfully but after >3MB is throwing

System.Web.HttpException: Maximum request length exceeded error.

I've tried changing web.config and below is my current one but still no success.

<httpRuntime maxRequestLength="1048576" requestValidationMode="2.0" enableVersionHeader="false" targetFramework="4.5" />

<security>
    <requestFiltering>

        <requestLimits maxAllowedContentLength="1073741824" />

    </requestFiltering>

</security>

Any suggestions?

rene
  • 41,474
  • 78
  • 114
  • 152
LeoNegi
  • 31
  • 11

0 Answers0