在本地主机中连接到 ASP.Net 4.0 时,几秒钟后 IE 回发失败

发布于 2024-09-25 15:06:48 字数 409 浏览 1 评论 0原文

在使用 ASP.Net 4.0、IIS 7.0 和 IE8 在本地主机上开发网站项目时,我注意到一个奇怪的问题。页面空闲几秒钟(例如 30 秒或更短时间)后,回发将不起作用。如果我加载页面,输入一些数据,然后立即单击提交按钮,则回发工作正常,但如果我让页面停留不超过 30 秒,进度条和选项卡上的小预加载器圆圈会无休止地搅动,响应永远不会发生。

我无法(或不知道如何)在 Windows 中使用 Wireshark 来查看网络上实际发生的情况。

远程服务器上有该网站的精确副本,当连接到该网站时,不会出现该问题。

此外,当使用 Firefox 连接到本地主机上的站点时,不会出现该问题。

最后,当使用 IE 8 连接到本地主机上的 ASP 2.0 网站时,没有问题。该页面可以放置一个小时,回发仍然有效。

有人有什么想法吗?

I noticed an odd problem when developing a web site project on localhost using ASP.Net 4.0, IIS 7.0, and IE8. Postbacks do not work after the page has been idle for a few seconds, like 30 seconds or less. If I load the page, enter some data, and click the submit button immediately, the postback works perfectly, but if I let the page sit for not more than 30 seconds, the progress bar and the little preloader circle on the tab churn endlessly and the response never occurs.

I am unable (or don't know how) to use Wireshark in Windows to see what is actually happening on the network.

There is an exact copy of the web site on a remote server, and when connecting to that site, the problem does not occur.

Furthermore, when connecting to the site on localhost using Firefox, the problem does not occur.

Finally, when connecting to an ASP 2.0 web site on localhost using IE 8, there is no problem. The page can sit for an hour and a postback will still work.

Anyone have any ideas?

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

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

发布评论

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

评论(1

酷遇一生 2024-10-02 15:06:48

哦哇。我想我终于找到了。好像是AVG。我完全禁用了 AVG,并且表单可以正常工作。我重新启用它,表单提交挂起/发生 HTTP 504 超时。

我通过禁用传入消息的电子邮件扫描仪来缩小范围 - 这似乎是罪魁祸首(无论如何我都禁用了传出功能,所以这也可能是一个问题)。

我怀疑 Outlook 的自动发送/接收(每 30 秒左右)会触发 AVG 电子邮件扫描程序,这会出于某种原因阻止任何后续表单提交到达服务器,即使 Fiddler 显示它是从浏览器正确发布的。

很高兴我找到了它! :)

Oh wow. I think I've finally found it. It seems to be AVG. I disabled AVG entirely, and the form post works. I re-enable it, and the form submit hangs / HTTP 504 timeout occurs.

I narrowed it down by disabling the email scanner for incoming messages - that seems to be the culprit (I have outgoing disabled anyway, so that might also be an issue).

I suspect Outlook's automatic send/receive (every 30 seconds or so) triggers the AVG email scanner, which for some reason prevents any subsequent form submissions from reaching the server, even though Fiddler shows it being posted correctly from the browser.

So glad I have found it! :)

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