I have an ASP.NET program which is launching this exception, apparently randomly. I've seen other questions about this exceptions, and everyone says that's a problem of Response.Redirect. However, I'm not using a Response.Redirect call neither a Response.End, so I hav开发者_运维技巧e no idea what's happening here.
However, I have a supposition: This program is receiving a lot of data, it can be processing data even 3 or 4 minutes, or even more. Could it be that internally, something is closing the connection or something like that because of that?
Thanks a lot in advance!!
Possibly you are hitting the Script timeout which results in the same ThreadAbortException.
If you need to extend the processing time allowed use:-
Server.ScriptTimeout = 900 // Time allowed in seconds
Try the executionTimeout in the web.config, refer to
http://msdn.microsoft.com/en-us/library/e1f13641.aspx
If your on IIS6+, check the application pool setting and ensure it doesnt Timeout. It could be the ping issue, that it the thread become unresponsive during execution and IIS shutsdown the Application Pool. Turn Ping Enabled to off.
精彩评论