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
  • 39,748
  • 78
  • 111
  • 142
LeoNegi
  • 29
  • 8

0 Answers0