我创建了一个 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.
。我错过了什么吗?还有什么我可以尝试的吗?
谢谢!