How should I perform a long-running task in ASP.NET 4?
I am building a website using .NET 4. There are lots of MSDN articles dating from 2003, about using Thread objects and 2007, using Asynchronous Pages in .NET 2 , but that is all pretty stale. I know .NET 4 brought us the Task class and some people vaguely cautioning against its use for this purpose . So I ask you, what is the "preferred" method circa 2011 for running background/asynchronous work under IIS in ASP.NET 4? What caveats are there about using Thread/Task directly? Is Async=true still in vogue? EDIT: Ok, ok, from the answers it's clear the opinion is that I should make a service if I