Will the automatic recycling of the application pool in IIS kill a working thread that was called from QueueUserWorkItem in ASP.NET?
Since this happens at set intervals and I’m getting random errors it would appear, I am wondering if these two are running into each other?
If so, how do I run an asynch task and not get killed by a recycle?
When ASP.NET recycles, any long-running tasks within the ASP.NET process will be stopped. If you need to run background tasks then create a companion windows service to host these separate tasks.