本地能上传文件,部署到服务器上就报 Cannot access a closed file 错误,以下是解决方法:

<System.Web>
   <httpRuntime executionTimeout="90" maxRequestLength="20000" useFullyQualifiedRedirectUrl="false" requestLengthDiskThreshold="8192"/>
</System.Web>

最重要是requestLengthDiskThreshold  此属性
设置输入流缓冲阈值。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
猜你喜欢
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2021-07-29
相关资源
相似解决方案