I’m currently migrating an existing ASP.NET MVC application to ASP.NET Core.
When copying over a view with a Partial view in it, I got the following warning:
Although the Partial method still exists, it is recommended to switch to the asynchronous version as the synchronous version can result in deadlocks in certain scenarios.
The solution is simple; replace calls to @Html.Partial
with @await Html.PartialAsync
or the Partial Tag Helper.