折腾了很久的问题,因为VS默认只支持4M左右大小内的文件上传,要不在游览器就会报错404或者500,且不进入后代代码断点调试。
解决方法:在web.config里面设置最大上传文件大小
<system.web>
<httpRuntime maxRequestLength="2024000000" executionTimeout="120" targetFramework="4.5.2" /><!--2个G,这一行代码才是正式起作用的!!因为int32最多就只能到2个G了-->
</system.web>