最大请求长度超出例外
发布时间:2020-05-25 06:59:09 所属栏目:asp.Net 来源:互联网
导读:我正在尝试使用上传控件上传一个20兆文件,它在visual studio的内置webserver中工作正常,但一旦我发布到生产服务器(我无法访问),我会收到以下错误: Server Error in / Application.------------------------------------------------------------------------
|
我正在尝试使用上传控件上传一个20兆文件,它在visual studio的内置webserver中工作正常,但一旦我发布到生产服务器(我无法访问),我会收到以下错误: 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. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [HttpException (0x80004005): Maximum request length exceeded.] System.Web.HttpRequest.GetEntireRawContent() +11140903 System.Web.HttpRequest.GetMultipartContent() +72 System.Web.HttpRequest.FillInFormCollection() +245 System.Web.HttpRequest.get_Form() +119 System.Web.HttpRequest.get_HasForm() +11072199 System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +124 System.Web.UI.Page.DeterminePostBackMode() +83 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint) +270 -------------------------------------------------------------------------------- 我已将以下内容添加到我的system.web节点,所以我不知道真正的问题是什么. <httpRuntime executionTimeout="800" maxRequestLength="51200" /> 这方面的任何方向都是非常有帮助的. 解决方法你可以看看 here.它指出相同的解决方案,但描述为什么. 这是微软的方式:here (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 我可以在.NET中设置IIS MIME类型吗?
- asp.net-mvc-3 – 在Application_Start中访问ninject内核
- asp.net-mvc – ASP.NET MVC中基础控制器类的好候选人是什么
- asp.net – 文件下载问题:文件名与空格被截断!
- asp.net-web-api – owin cors或web api cors
- asp.net-mvc – 支持RavenDB的MVC4的会员系统
- asp.net – 如何在Visual Studio中生成Web服务的WSDL文件
- ASP.NET:global.asax中的Access Session变量
- ASP.NET MVC – 返回JavaScriptResult不起作用
- asp.net – 如何传递datetime参数?
推荐文章
站长推荐
- 从asp.net中的gridview获取已检查的行
- ASP.NET Core 2.1身份:如何删除默认UI剃刀页面?
- rest – asp.net Web Api – 默认错误消息
- asp.net – 更新面板PostBackTrigger,更新进度不
- asp.net-mvc-3 – 型号型号无法更新mvc
- asp.net – 每个会话的NH请求 – “会话已关闭
- 如何为asp.net身份创建安全邮戳值(IUserSecurity
- asp.net-web-api – 如何确保ASP.net Web API控制
- asp.net-core – 对Post请求的两次调用:使用htt
- asp.net-mvc – 重定向到mvc中的actionresult但不
热点阅读
