“连接中断”在 asp.net 服务器上

发布于 2024-08-03 06:14:31 字数 395 浏览 1 评论 0原文

当我尝试在实时服务器上运行一个非常长的操作(本地大约需要 2 分钟)时,我收到此错误:

Connection Interrupted

The connection to the server was reset while the page was loading.

The network link was interrupted while negotiating a connection. Please try again.

我将超时更改为 1 小时:

<httpRuntime executionTimeout="3600" />

...但它没有修复它。可能是什么原因造成的?我该如何解决?

谢谢

When I try to run a really long action (takes around 2 minutes locally) on my live server, I get this error:

Connection Interrupted

The connection to the server was reset while the page was loading.

The network link was interrupted while negotiating a connection. Please try again.

I changed the timeout to be 1 hour:

<httpRuntime executionTimeout="3600" />

... but it didn't fix it. What could be causing this and how could I fix it?

Thanks

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

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

发布评论

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

评论(2

雨落□心尘 2024-08-10 06:14:31

检查 IIS 中的超时。

另外,你和服务器之间有代理吗?

Check the timeout in IIS.

Also, are there any proxies between you and the server?

云淡月浅 2024-08-10 06:14:31

这很可能是浏览器,而不是服务器。例如,如果 IE 默认情况下 2 分钟内没有从服务器收到任何数据,则会超时< /a>.

底线:你最好弄清楚为什么你正在做一些长期运行的事情,但不这样做

编辑

注意:该链接主要讨论 KeepAliveTimeout,但 ServerInfoTimeout 才是给您带来麻烦的原因。您可以按照链接中的说明修复您的盒子上的问题。然而,这不会修复您网站的消费者,因此您最好不要做需要很长时间的事情。

Most likely this is the browser, not the server. IE, for example, will timeout if it hasn't received any data from the server in 2 minutes by default.

Bottom line: you're better off figuring out why you're doing something that's very long-running and not doing it.

Edit

Note: the link talks mainly about the KeepAliveTimeout, but the ServerInfoTimeout is the one causing you trouble. You can fix things on your box by following the instructions in the link. This will not fix the consumers of your website, however, so you're better off not doing things that take a long time.

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