ASP.net上传限制服务器超时

发布于 2024-08-07 07:46:40 字数 667 浏览 4 评论 0原文

我在 Umbraco 媒体部分上传文件时遇到问题。我不确定问题是否与大小相关,因为我没有收到提供太多详细信息的错误,但我会解释到目前为止我所做的事情,看看您是否可以提供帮助。

我添加了:

<httpRuntime maxRequestLength="102400" executionTimeout="3600"/>

到标签内的 web.config

我已将相同的 httpRuntime 标签添加到服务器默认 web.config 重新启动了网站的所有应用程序池,但问题仍然存在。

当我尝试上传文件时收到的错误是:

解释:在检索页面之前请求超时。 技术信息(针对支持人员)

* Error Code 64: Host not available
* Background: The gateway or proxy server lost connection to the Web server.
* Date: 10/8/2009 4:27:46 PM
* Server: SERVER.XXXXX
* Source: Remote server 

该问题的奇怪之处在于,它不仅发生在文件大小超过 4mb 的文件上。任何上传超过 1mb 的文件似乎都会发生这种情况。

非常感谢任何帮助。

I'm having a problem with uploading files in the media section of Umbraco. I'm not sure if the problem is size related as I don’t get an error that give too much details but I'll explain what I’ve done so far and see if you can help.

I've added:

<httpRuntime maxRequestLength="102400" executionTimeout="3600"/>

to the web.config within the tag

I've added the same httpRuntime tag to the servers default web.config restarted all the app pools for the websites and the problems still persists.

The error I receive when I try to upload files is:

Explanation: The request timed out before the page could be retrieved.
Technical Information (for support personnel)

* Error Code 64: Host not available
* Background: The gateway or proxy server lost connection to the Web server.
* Date: 10/8/2009 4:27:46 PM
* Server: SERVER.XXXXX
* Source: Remote server 

The odd thing about the problem is that it does not only happen on files over the magic 4mb file size. It seems to happen on any files uploaded above about 1mb.

Any help much appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

旧伤还要旧人安 2024-08-14 07:46:40

您是否正在使用带有集成管道的 IIS 7?如果是这样,您可能需要向 system.webserver 部分添加一些设置:

<system.webServer>
    <security>
        <requestFiltering>
            <requestLimits maxAllowedContentLength="102400"/>
        </requestFiltering>
    </security>
...
</system.webServer>

除了 httpRuntime 设置之外,您还需要此设置。

Are you using IIS 7 with integrated pipeline perhaps? If so, you may need to add some settings to your system.webserver section:

<system.webServer>
    <security>
        <requestFiltering>
            <requestLimits maxAllowedContentLength="102400"/>
        </requestFiltering>
    </security>
...
</system.webServer>

You need this in addition to your httpRuntime settings.

贱贱哒 2024-08-14 07:46:40

事实证明这与 Web.config 或 metabase.xml 无关。

问题是网站的应用程序池的虚拟内存限制太低,我猜网站池在文件上传完成之前就被回收了。

我暂时取消了限制。在再次设置之前我需要阅读一下。

It turns out it was not to do with the Web.config or the metabase.xml.

The problem was that the AppPool for the website had a virtual memory limit that was too low and I guess the site Pool was being recycled before the file had finished uploading.

For the time being I've removed the limit. I'll need to read up before setting it again.

情深缘浅 2024-08-14 07:46:40

阅读此内容:链接

看来 server 2008 有一个已知错误对此(IIS7 有最大上传限制,您必须通过特定 Web 应用程序的 web.config 手动编辑

我目前正在处理此修复,现在本地上传可以正常工作(遵守设置的最大上传限制),除了通过互联网(通过了 ISA),

我仍然试图弄清楚我是否还必须编辑 WFE 才能使其通过互联网工作,但不确定这是否解决了我的问题或与此有关。 。

  • 罗伯托

Read this: link

It seems server 2008 has a known error on this (IIS7 has a max. upload restriction you have to manually edit via the web.config of the specific web app

I'm currently working on this fix, locally now the upload works (respecting the set max. upload limit), except via Internet (passed the ISA) it still doesn't.

I'm trying to figure out if I also have to edit the WFE's to make it work via the Internet, but not sure if this fixed my problem or has anything to do with it.

  • Roberto
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文