zoukankan      html  css  js  c++  java
  • ASP.NET上传大文件404报错

    报错信息:

     Failed to load resource: the server responded with a status of 404 (Not Found)

    尝试1:

    仅修改Web.config中system.web的值

      <system.web>
        <compilation debug="true" targetFramework="4.6.1" />
        <httpRuntime maxRequestLength="1024000" requestLengthDiskThreshold="100" executionTimeout="600" />
      </system.web>

    结果:失败

    尝试2:

    在修改Web.config的基础上修改iis请求筛选中运行最大的值

    结果:失败

    最总尝试:

    1.修改Web.config中system.web的值为

    <system.web>
        <compilation debug="true" targetFramework="4.6.1" />
        <httpRuntime maxRequestLength="1024000" requestLengthDiskThreshold="100" executionTimeout="600" />
      </system.web>

    2.在后面添加system.webServer

    <system.webServer>
        <security>
          <requestFiltering >
            <requestLimits maxAllowedContentLength="1073741824" ></requestLimits>
          </requestFiltering>1
        </security>
      </system.webServer>

    结果:成功

  • 相关阅读:
    08-JS中table隔行换色
    07-JS中 li 排序
    HTML DOM 事件
    JavaScript 事件
    jQuery事件函数
    JQuery与JS对象相互转换
    jQuery中的选择器
    jQuery实现放大镜特效
    java线程(2016-4-7)
    Java 线程的转换及状态
  • 原文地址:https://www.cnblogs.com/ladyzhu/p/10060681.html
Copyright © 2011-2022 走看看