Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/302.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在C#&;中上载大文件;ASP.NETMVC_C#_Html_Asp.net Mvc - Fatal编程技术网

在C#&;中上载大文件;ASP.NETMVC

在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"/>

我试图使用C#和ASP.NET MVC上载文件,但出现以下错误:

HTTP错误413.1-请求实体太大
请求过滤模块配置为拒绝超过请求内容长度的请求

这就是我如何配置我的
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及以上版本,还需要添加以下行:
你第一次尝试了吗