整个上午都在和这个战斗。这是我被指出的链接,但我仍然没有运气:
http://www.asp.net/visual-studio/overview/2013/release-notes-(release-candidate)
https://stackoverflow.com/a/18426574/1118218(我做了所有接受的答案建议)
https://stackoverflow.com/a/18419011/1118218(与上述相同的问题,但这里的解决方案也不起作用,不解决类)
我安装了 ASPNET web 工具刷新。重新启动视觉工作室。除了 AccountController 之外,一切似乎都正确构建。它找不到 AuthenticationIdentityManager(和 IdentityStore)。
[Authorize]
public class AccountController : Controller
{
public AccountController()
{
IdentityManager = new AuthenticationIdentityManager(new IdentityStore());
}
public AccountController(AuthenticationIdentityManager manager)
{
IdentityManager = manager;
}
public AuthenticationIdentityManager IdentityManager { get; private set; }
}
知道如何让它工作吗?所有与 ASP.NET Identity、Owin、EF 和 MVC 相关的 nuget 包都已更新到最新的预发布版本。