5

我创建了一个 Azure Api 应用程序,我将使用它来上传文件。这些文件将> 4mb,因此需要增加最大请求长度。我在 Web.config 中添加了以下内容:

 <system.web>
    <httpRuntime executionTimeout="7200" targetFramework="4.5" maxRequestLength="2097152" />
  </system.web>

我还补充说:

<system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="2097152000" />
      </requestFiltering>
    </security>
  </system.webServer>

但我仍然得到例外Maximum request length exceeded.。我错过了什么吗?还有什么我可以尝试的吗?

谢谢!

4

1 回答 1

1

不幸的是,这还不可能。除了 API App 的限制外,Gateway 也有限制,它也是一个 ASP.NET 应用程序。您可以更改 API 应用程序,但不能更改网关。

我知道团队正在考虑为此提供解决方案,但我目前没有 ETA 可分享。

于 2015-07-11T19:27:47.893 回答