zoukankan      html  css  js  c++  java
  • asp.net fileupload上传大文件时提示404.13错误

    IIS 7 默认文件上传大小时30M 要突破这个限制,需要做如下操作:

    1. 修改IIS的applicationhost.config     打开 %windir%system32inetsrvconfigapplicationhost.config或者在C://   system32//inetsrv//config//applicationhost.config   找到: <requestFiltering>节点,   这个节点默认没有 <requestLimits maxAllowedContentLength="上传大小的值(单位:byte)" /> 元素,  最大值只能是<requestLimits maxAllowedContentLength="4294967295" />  <4GB,      为这个节点新增如下事例元素:<requestLimits maxAllowedContentLength="2147483647" /> ,上传的大小将改为2G 注意: %windir%system32inetsrvconfigapplicationhost.config 文件一定不要用其他机器的文件替换,否则IIS将无法启动 此文件记录了,当前IIS中所有Site , App pool的信息,还有一些与机器相关的配置。

    2 修改web.config <system.web>      <httpRuntime executionTimeout="36000" maxRequestLength="2097151"/>   <!--maxRequestLength:上传的大小,单位K   ,executionTimeout:设置超时时间,单位:秒。(默认是90秒) --> </system.web>

     注意:这个maxRequestLength最大值只能是2097151K

  • 相关阅读:
    网易2019校招C++研发工程师笔试编程题
    牛客网 数串
    ps aux 状态介绍
    阿里在线测评解析
    Ubuntu 18.04安装 Sublime
    file '/grub/i386-pc/normal.mod' not found.解决方案
    解决Windows10与Ubuntu系统时间不一致问题
    进程与线程的区别
    大端模式和小端模式
    2016湖南省赛----G
  • 原文地址:https://www.cnblogs.com/lff255356/p/3554356.html
Copyright © 2011-2022 走看看