ASP.NET long running task. Thread is being aborted exception

前端 未结 2 614
闹比i
闹比i 2020-12-18 01:13

An ASP.NET 3.5 webapp has to start several tasks that takes hours to complete. For obvious reasons the pages which starts these tasks cannot wait for them to finish nor will

2条回答
  •  太阳男子
    2020-12-18 01:48

    You can start the long-running process in its own application domain.

    In the past, when I've needed this capability, I create a Windows Service for this purpose. If you use WCF to connect to it, it doesn't even have to run on the IIS machine at all; you can run it on any machine on the network.

提交回复
热议问题