Ana Sayfa / Programlama / Asp.Net / Maximum request length exceeded

Maximum request length exceeded

I am getting the error Maximum request length exceeded when I am trying to upload a video in my site.


If you are using IIS for hosting your application, then the default upload file size if 4MB. To increase it, please use this below section in your web.config –

        <httpRuntime maxRequestLength="1048576" />

For IIS7 and above, you also need to add the lines below:

         <requestLimits maxAllowedContentLength="1073741824" />