aspnet / Identity

[Archived] ASP.NET Core Identity is the membership system for building ASP.NET Core web applications, including membership, login, and user data. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
1.96k stars 869 forks source link

MVC1000 warning due to the use of IHtmlHelper.Partial #1938

Closed thomaslevesque closed 6 years ago

thomaslevesque commented 6 years ago

Warning MVC1000 is triggered in the following scaffolded pages:

Use of IHtmlHelper.Partial may result in application deadlocks. Consider using Tag Helper or IHtmlHelper.PartialAsync.

(there might be other instances of this, but I didn't scaffold all pages)

thomaslevesque commented 6 years ago

Oops, looks like it has already been fixed

wysisoft commented 5 years ago

Can you explain how this problem was solved? I get this error on every page I get from scaffolding

thomaslevesque commented 5 years ago

Can you explain how this problem was solved? I get this error on every page I get from scaffolding

It was fix in the code but the fix has not released yet.

You can just use <partial name="_StatusMessage" for="StatusMessage" /> instead of @Html.Partial("_StatusMessage", Model.StatusMessage).