Reputation: 117
I have problem with maximum request length exceeded error, when i try upload more then 3-4 photos in my .net mvc app i get:
Server Error in '/' Application.
I found solution for IIS 7:
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
</system.webServer>
I tried add it to my web.config, but probably it doesn't work for IIS 10 or i did something wrong, because i'm still newbie.
Upvotes: 1
Views: 6246
Reputation: 117
I solved it, just add this maxRequestLength="214748364" to the web.config:
<system.web>
<httpRuntime targetFramework="4.5.2" maxRequestLength="214748364" />
</system.web>
Upvotes: 7