Organizational Research By

Surprising Reserch Topic

how to set the maxallowedcontentlength to 500mb while running on iis7


how to set the maxallowedcontentlength to 500mb while running on iis7  using -'asp.net,iis-7,file-upload,.net-4.0'

I changed the maxAllowedContentLength to

<security>
    <requestFiltering>
        <requestLimits maxAllowedContentLength="5024000000" />
    </requestFiltering>
</security>


In my web.config, but when running on IIS7 I get this error:


  The 'maxAllowedContentLength' attribute is invalid. Not a valid unsigned integer




but when I run in the VS server it run normally without any errors.

How to config my website to allow upload files with 500MB size, without this problem on IIS7?
    

asked Oct 19, 2015 by vickeykumar66
0 votes
10 views



Related Hot Questions

1 Answer

0 votes

According to MSDN maxAllowedContentLength has type uint, its maximum value is 4,294,967,295 bytes = 3,99 gb

So it should work fine.

See also Request Limits article. Does IIS return one of these errors when the appropriate section is not configured at all?

answered Oct 19, 2015 by patelnikul321

...