I encounter a situation where ASP.NET takes a long time to respond to a web page (more than 2 hours). This is because codebehind has been running for a while (a very long, slow cycle).
The browser (both IE and Firefox) stops waiting for a response (after about an hour) and gives a general one that cannot display a web page error (similar to what you see if you try to go to a non-existent server).
At the same time, the asp.net application continues to work (I see it in the debugger) and eventually shuts down.
Why is this happening? Are there any settings in web.config to affect this? I hope you will have a timeout that I am missing that causes this.
Maybe settings in IE or Firefox? But I think they are waiting for the server to communicate.
I experience this even when I run the application in debug mode (with debug = "true" compilation) on my local computer from VS (therefore it does not work in IIS, but on ASP.NET Dev Server).
I donโt know that it takes a lot of time to create a page, but at this stage it does not matter. Speeding up this will require a lot of extra work, and delaying is not a big deal. It is used internally.
I understand that I can redo this problem by logic in the background process and receive a notification when this is done through AJAX, or pull it to a desktop application or service or something else. Something in this direction will be done in the end, but that is not what I am asking for right now.
Sumrak Mar 11 '09 at 2:08 2009-03-11 02:08
source share