无法调试大文件大小

编程入门 行业动态 更新时间:2024-10-24 18:21:06
本文介绍了无法调试大文件大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好 我上传的文件大小超过2 GB,我无法调试我的代码,如果文件大小小于2 GB它运行正常。 我的网站配置文件: - < httpruntime targetframework = 4.5maxrequestlength =4194304executiontimeout =18000requestlengthdiskthreshold =9172>

Hi All I am uploading larger file size more then 2 GB, where i could not debug my code, where if the file size is less then 2 GB then it is working properly. My Web Config File :- <httpruntime targetframework="4.5" maxrequestlength="4194304" executiontimeout="18000" requestlengthdiskthreshold="9172">

<requestLimits maxAllowedContentLength="4294967295"/>

IIS是: - IIS7 为此我无法识别问题。 我尝试了什么: 我更改了maxRequesrLength值。

IIS is :- IIS7 For this i could not recognize the problem. What I have tried: I have changed the maxRequesrLength value.

推荐答案

这是在web.config文件中。指定的值是千字节数。 This goes in the web.config file. The value specified is the number of kilobytes. <configuration> <system.web> <httpRuntime maxRequestLength="xxx" /> </system.web> </configuration>

如果您使用的是IIS7,那么您还需要定义请求限制。这里我已声明15MB文件上传值。 试试这个! Hi, if you are using IIS7 then u need to define request Limits also. Here I have declared values for 15MB file upload. Try this ! <system.web> <!-- maxRequestLength,need to add in KB (15 * 1024) --> <httpRuntime maxRequestLength="15360" ></httpRuntime> </system.web> <system.webServer> <security> <requestFiltering> <!-- maxAllowedContentLength, for IIS, in bytes (15 * 1024 * 1024) --> <requestLimits maxAllowedContentLength="15728640" ></requestLimits> </requestFiltering> </security> </system.webServer>

引用:

我上传的文件大小超过2 GB,

I am uploading larger file size more then 2 GB,

什么?你在加载一些大小高达2GB的网页吗? 整个页面对用户有用吗?他不厌倦等半个小时才能获得页面? 页面中有什么内容?全国的电话号码? 如果你用较小的块组织你的页面,你会有减少服务器工作量的副作用,页面会更多响应用户方。

What ? are you loading some web pages of size up to 2GB ? And the whole page is useful to user ? And he don't get bored to wait half an hour to get the page ? What is in the page ? Phone numbers of the whole country ? If you organize your page in smaller chunks, you will have the side effects of reducing the workload on server and the page will be more responsive on user side.

更多推荐

无法调试大文件大小

本文发布于:2023-11-01 12:03:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1549280.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:大文件   大小

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!