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

1

6

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?

Magavern answered 26/9, 2010 at 19:8 Comment(3)
Try browsing the site with the javascript console open. You might be getting some errors that are being absorbed by browsers differently.Squirearchy
I'm having the same issue. were you ever able to resolve this? If yes what was the workaround or what is causing this issue?Quittor
Download and install fiddler fiddler2.com/fiddler2/version.asp And see if its even sending the postback ?Cuticle
P
1

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

Prevailing answered 7/5, 2013 at 12:29 Comment(1)
@SercanOzdemir I can't - it's up to Mark (OP) to mark it, but he doesn't seem to use the site any more.Prevailing

© 2022 - 2024 — McMap. All rights reserved.