When I try to upload an image to create a new record in an MVC project, I get server error "Maximum request length exceeded." Attached is the image, and the MVC project I'm referring to can be downloaded from here:
This MVC web app is based on Microsoft's Contoso University series of tutorials. I get the error "Maximum request length exceeded" when I try to upload the attached image to create a new student.
Here are some of the solutions I've found online:
1. Increase upload max size by adding <httpRuntime maxRequestLength="51200" /> to web.config
3. Use an API like Google Gears to shrink the image before uploading it
The easiest solution would be to increase maxRequestLength, but it doesn't work. Does anyone know why I can't increase maxRequestLength? Or does anyone know how to implement the the canvas or API solution, or some other solution you may know of?
I'm using Visual Studio 2013 Community.
Thanks in advance.