开发者

IE Postbacks Fail After a Few Seconds When Connecting to ASP.Net 4.0 in Localhost

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 wo开发者_开发百科rk 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?


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! :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜