asp.net上传HttpException (0x80004005): 超过了最大请求长度

广告:

环境:asp.net mvc2.0 asp.net 3.5 sp1

超过了最大请求长度。

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Web.HttpException: 超过了最大请求长度。

源错误:

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:

[HttpException (0x80004005): 超过了最大请求长度。]

System.Web.HttpRequest.GetEntireRawContent() +8877164

System.Web.HttpRequest.GetMultipartContent() +62

System.Web.HttpRequest.FillInFormCollection() +236

System.Web.HttpRequest.get_Form() +68

System.Web.HttpRequest.get_HasForm() +8828983

System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +97

System.Web.UI.Page.DeterminePostBackMode() +63

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +133

版本信息: Microsoft .NET Framework 版本:2.0.50727.8813; ASP.NET 版本:2.0.50727.8951

解决:

<httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="66000" executionTimeout="90" enableVersionHeader="false" />

<!--maxRequestLength: KB executionTimeout: ASP.NET 关闭前允许发生的上载秒数-->

maxRequestLength="66000" 表示 66M

广告:

编辑:Admin 时间:2021/1/22 21:08:11 阅览:464   返回    
asp.net上传
超过了最大请求长度
扫描关注53BK报刊官网
扫描关注阅速公司微信