默认限制< limits>用于IIS Express [英] Default Limits <limits> for IIS Express

查看:65
本文介绍了默认限制< limits>用于IIS Express的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I need to test a file upload component that will be accepting very large files. I want to test locally in my development environment but since I use IIS Express instead of IIS 7 I am not sure where to make the global change.

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

In IIS 7 the change cannot be made via the web.config but needs to be changed through the IIS Manager Tool. See this IIS article for an example.

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

Does anyone know how to make the same global change using IIS Express (in Visual Studio 2013)?

推荐答案

如果建议的web.config更改ppascualv不起作用,请尝试将其放入IIS Express applicationhost.config 中,可以在

If the web.config change ppascualv suggested doesn't work, try putting it in the IIS Express applicationhost.config, which can be found at

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

<system.webServer>

放入

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

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

This should set it as a global, unless a web.config from an application overrides it.

这篇关于默认限制&lt; limits&gt;用于IIS Express的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆