无法调试大文件大小 [英] Could not debug large file size
问题描述
大家好
我上传的文件大小超过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>
< br>
我上传的文件大小超过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.
这篇关于无法调试大文件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!