getting a connection was reset error on asp.net

假如想象 提交于 2019-12-12 05:13:40

问题


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. I use this code in web.config this :

<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. but that is not working on live domain. i also try this in live web.confg setting that is

<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. Thank you


回答1:


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

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

(set to about 1GB)

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



来源:https://stackoverflow.com/questions/17607082/getting-a-connection-was-reset-error-on-asp-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!