用上传控件上传文件时,当执行SaveAs()时出错,异常为cannot access a closed file;
当传小文件没有异常,当超过80k时就出上述异常,后来发现要将Web.config里增加
<!--设置上传附近的大小-->
<httpRuntime maxRequestLength="8192" requestLengthDiskThreshold="8192"></httpRuntime>
用上传控件上传文件时,当执行SaveAs()时出错,异常为cannot access a closed file;
当传小文件没有异常,当超过80k时就出上述异常,后来发现要将Web.config里增加
<!--设置上传附近的大小-->
<httpRuntime maxRequestLength="8192" requestLengthDiskThreshold="8192"></httpRuntime>
转载于:https://www.cnblogs.com/ruanzuzhang/archive/2009/03/25/1421196.html