ASP.NET Controller: An asynchronous module or handler completed while an asynchronous operation was still pending

后端 未结 8 1154
一个人的身影
一个人的身影 2020-11-28 09:36

I have a very simple ASP.NET MVC 4 controller:

public class HomeController : Controller
{
    private const string MY_URL = \"http://smthing\";
    private r         


        
8条回答
  •  -上瘾入骨i
    2020-11-28 10:16

    I had a similar issue, but was resolved by passing a CancellationToken as a parameter to the async method.

提交回复
热议问题