为什么上传大于 100KB 的文件时会超时?
我在 IIS7 上有一个网站。我最多可以上传 100KB,但如果我尝试任何大于 100K 的文件,则会出现超时错误。
我已将以下设置添加到我的 web.config
文件中,但出现了相同的错误:
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2000000000"></requestLimits>
</requestFiltering>
</security>
可能出了什么问题?
I have a web site on IIS7. I can upload a maximum of 100KB, but if I try any files larger than 100K then I get a timeout error.
I have added following setting to my web.config
file but I am getting the same error:
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2000000000"></requestLimits>
</requestFiltering>
</security>
What could be wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能还需要检查 web.config 中的
元素,以确保它不会限制您的请求大小。You might also want to check your
<httpRuntime>
element in the web.config to ensure that it isn't limiting your request size there.尝试增加
HttpServerUtility.ScriptTimeout
属性。您可以在脚本中执行此操作:或者您可以在
web.config
中进行配置:有关详细信息,请参阅:
Try increasing the
HttpServerUtility.ScriptTimeout
property. You can do this in your script:Or you can configure in your
web.config
in:For more info see: