C# 未找到IAAuthenticationManager的对象引用

C# 未找到IAAuthenticationManager的对象引用,c#,model-view-controller,C#,Model View Controller,我在MVC应用程序中遇到此错误 找不到类型或命名空间名称“IAuthenticationManager” (是否缺少using指令或程序集引用?) 下面是我的代码,我得到了错误 private IAuthenticationManager AuthenticationManager { get { return HttpContext.GetOwinContext().Authentication; } } 添加对链接中显示的此DLL的引用: 它来自程序集Mi

我在MVC应用程序中遇到此错误

找不到类型或命名空间名称“IAuthenticationManager” (是否缺少using指令或程序集引用?)

下面是我的代码,我得到了错误

private IAuthenticationManager AuthenticationManager
{
   get
   {
       return HttpContext.GetOwinContext().Authentication;
   }
}

添加对链接中显示的此DLL的引用:

它来自程序集Microsoft.Owin.dll

  • 如果通过Nuget安装,请检查Nuget软件包引用
  • 如果没有,请通过Nuget软件包安装以获取程序集引用。软件包名称-Microsoft.Owin