IIS 10 - HTTP 错误 413.1 - 请求实体太大

标签 iis iis-10

我在使用 IIS 10 和 .Net 发布大文件时遇到问题。
我收到的错误代码来自 IIS:

HTTP Error 413.1 - Request Entity Too Large
The request filtering module is configured to deny a request that exceeds the request content length.
我在网上找到了许多不起作用的解决方案。这是我对 IIS 所做的更改。
这些更改是在托管我遇到此问题的应用程序的默认网站下完成的。对默认网站所做的更改已传播到其中包含的所有网站。
enter image description here
enter image description here
enter image description here
我还将 uploadReadAheadSize 设置为 2147483647:
enter image description here
我试图上传的文件是 97 MB。
我错过了什么?

最佳答案

在配置文件中设置uploadReadAheadSize值,步骤如下:

  • 选择默认网站下的站点
  • 选择配置编辑器
  • 在部分下拉列表中,选择“system.webServer/serverRuntime”
  • 为“uploadReadAheadSize”输入更高的值,例如 1048576
    字节。默认值为 49152 字节。
  • 关于IIS 10 - HTTP 错误 413.1 - 请求实体太大,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67438645/

    相关文章:

    javascript - IIS url 重写 - css 和 js 被错误地重写

    IIS 7 查询字符串长度

    IIS 10 应用程序池睡着了

    iis - 无法在 IIS 10.0 中使用命令行 VSIISExeLauncher.exe 启动进程

    windows - 如何在 Windows Server 2016 (IIS 10) 上启用服务器端 SSL3.0、TSL1?

    iis - 如何使用 NSIS 安装脚本中的脚本在 IIS 5.1、6.0、7.0 和 7.5 中创建虚拟目录?

    asp.net - IIS:web.config 重定向到另一个 url,保留地址栏中的原始 URL

    c# - Swashbuckle 5 找不到我的 ApiControllers

    asp.net-core-webapi - HTTP 错误 500.19 - 内部服务器错误代码 0x8007000d

    iis-10 - HTTP 错误 500.31 - ANCM 无法在 IIS 中找到 native 依赖项