Hi there.
Here is couple of recommendations about uploading large files into ASP.NET MVC application. You have to make two configurational changes:
1. Update your web.config with following directive:
<location path="FileUpload"> <system.web> <httpRuntime executionTimeout="600" maxRequestLength="100000" /> </system.web> </location>
2. Goto IIS Management Panel, open your site and application, double click Request Filtering feature, and pick «Edit Feature Settings…» on the right side panel. You’ll see «Request Limits» panel with «Maximum allowed content length (bytes)» setting.
—
Command-line style:
appcmd set config "Default Web Site/naotmc" -section:requestFiltering -requestLimits.maxAllowedContentLength:104857600 -commitpath:apphost