简体   繁体   English

获取连接被重置为asp.net上的错误

[英]getting a connection was reset error on asp.net

I'm am try trying to upload Video and audio file on live website. 我正在尝试在实时网站上上传视频和音频文件。 the example: domain.com/admin/fileupload.aspx that was a url. 示例:domain.com/admin/fileupload.aspx是一个URL。 I use this code in web.config this : 我在web.config中使用以下代码:

<httpRuntime executionTimeout="1000" maxRequestLength="1048576" />

with this web.config setting i didn't get The error connection was reset error on run time that is working on localhost:port/domainfolder/admin/fileupload.aspx very well. 有了这个web.config设置我没有得到错误连接被重置运行时运行在localhost:port / domainfolder / admin / fileupload.aspx很好的错误。 but that is not working on live domain. 但这不适用于实时域。 i also try this in live web.confg setting that is 我也在live.web.confg设置中尝试

<httpRuntime maxRequestLength="2000000000" executionTimeout="999999"/>

but this is not working and getting same error. 但这不起作用并且出现相同的错误。 please help me out how can i solve this problem. 请帮我解决该问题。 I want to upload big files on web site ever video and audio file size around 60MB to 5GB around please let me know how can i fix this error connection was reset on live website. 我想在网站上上传大文件,而视频和音频文件大小约为60MB至5GB,请告诉我如何解决此错误连接已在实时网站上重置。 Thank you 谢谢

If you are using IIS7 then there is a built in limit in IIS of 30MB (request-filtering feature) You can change it by running the following command 如果使用的是IIS7,则IIS中的内置限制为30MB(请求过滤功能)。您可以通过运行以下命令来更改它

appcmd set config "My Site/MyApp" -section:requestFiltering -requestLimits.maxAllowedContentLength:1073741824 -commitpath:apphost

(set to about 1GB) (设置为约1GB)

http://technet.microsoft.com/en-us/library/cc754791(v=ws.10).aspx http://technet.microsoft.com/zh-CN/library/cc754791(v=ws.10).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM