• 上传文件的时候报长度超过限制长度



    Server Error in '/' Application.


    Maximum request length exceeded.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Web.HttpException: Maximum request length exceeded.


    错误原因:这个错误的引起是因为应用程序最大请求字节长度超过了默认请求字节长度

    解决方案:可以在Web.Config添加如下配置:

    <system.web>下面加上下面一句.搞定.
      <httpRuntime executionTimeout="300" maxRequestLength="51200"/>

    或加如下一段也可解决.

      <httpRuntime
       executionTimeout="1200"
       maxRequestLength="102400"
       useFullyQualifiedRedirectUrl="false"
       minFreeThreads="8"
       minLocalRequestFreeThreads="4"
       appRequestQueueLimit="100"

       />


  • 相关阅读:
    Codeforces 878A
    Codeforces 873B-Balanced Substring
    codeforces 868C
    51nod 1402 最大值(贪心)
    最小正子段和 贪心
    codeforces 819B
    Codeforces 785D
    Codeforces 864E
    863D
    UVA 1380 A Scheduling Problem
  • 原文地址:https://www.cnblogs.com/superMay/p/5044954.html
Copyright © 2020-2023  润新知