【问题标题】:Unable to upload files over 30MB无法上传超过 30MB 的文件
【发布时间】:2014-04-08 01:41:37
【问题描述】:

我最近将一个 .NET 网络表单站点从旧的 IIS 6 迁移到 IIS 7,现在无法上传大于 30MB 的文件。

所有的 web 文件都是一样的,web.config 也是一样的:

<httpRuntime
          executionTimeout="36000"
          maxRequestLength="1024000"
          useFullyQualifiedRedirectUrl="false"
          minFreeThreads="8"
          minLocalRequestFreeThreads="4"
          appRequestQueueLimit="100" />

其他信息:

IIS 6 服务器在物理专用机器上运行。 IIS 7 在 AWS EC2 上运行,具有更多内存(但我没有使用 S3)。

【问题讨论】:

    标签: asp.net amazon-web-services iis-7 amazon-ec2 iis-6


    【解决方案1】:

    我认为这个限制值在 IIS 7 以后发生了一些变化..(不要问为什么!) 这是新的配置:

    <system.webServer>
        <security>
          <requestFiltering>
            <!-- this is in bytes (100 MB), not KB unlike maxRequestLength -->
            <requestLimits maxAllowedContentLength="104857600" />
          </requestFiltering>
        </security>
    </system.webServer>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-27
      • 1970-01-01
      • 2012-04-06
      • 2022-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多