Make sure your controller method returns an async task.
public class ServiceController : Controller { public async Task<ActionResult> Index() { var service = new Service(); await service.CallMethodAsync(); return View(); } }
Basically, the documentation is written in such a way that, in their opinion, you use only ASP.NET WebForms, however, obviously, you can use this in MVC applications too, therefore their documentation should be updated.
source share