在C#&;中上载大文件;ASP.NETMVC
我试图使用C#和ASP.NET MVC上载文件,但出现以下错误: HTTP错误413.1-请求实体太大在C#&;中上载大文件;ASP.NETMVC,c#,html,asp.net-mvc,C#,Html,Asp.net Mvc,我试图使用C#和ASP.NET MVC上载文件,但出现以下错误: HTTP错误413.1-请求实体太大 请求过滤模块配置为拒绝超过请求内容长度的请求 这就是我如何配置我的web.config: <system.web> <authentication mode="None"/> <compilation debug="true" targetFramework="4.7.2"/>
请求过滤模块配置为拒绝超过请求内容长度的请求 这就是我如何配置我的
web.config
:
<system.web>
<authentication mode="None"/>
<compilation debug="true" targetFramework="4.7.2"/>
<httpRuntime targetFramework="4.7.2" executionTimeout="3600" maxRequestLength="104857600" enable="true"/>
</system.web>
对于IIS7及以上版本,还需要添加以下行:
你第一次尝试了吗