默认限制 对于IIS Express

问题描述 投票:6回答:3

我需要测试一个文件上传组件,该组件将接受非常大的文件。我想在开发环境中进行本地测试,但是由于我使用IIS Express而不是IIS 7,所以我不确定在哪里进行全局更改。

在IIS 7中,无法通过web.config进行更改,而需要通过IIS管理器工具进行更改。有关示例,请参见this IIS article

有人知道如何使用IIS Express(在Visual Studio 2013中)进行相同的全局更改吗?

iis-7 iis-express
3个回答
6
投票
applicationhost.config,可在]中找到>

%userprofile%\my documents\iisexpress\config\applicationhost.config

<system.webServer>

put

<security>
    <requestFiltering>
        <requestLimits maxAllowedContentLength="524288000"/>
    </requestFiltering>
</security>

这应该将其设置为全局,除非应用程序中的web.config覆盖它。


3
投票
web.config

2
投票
© www.soinside.com 2019 - 2024. All rights reserved.