Work in MVC 5 Authentication for Email Verification

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

I get an error: "System.Web.HttpContextBase" does not contain a definition for "GetOwinContext" and the extension method "GetOwinContext" cannot be found that takes the first argument of the type "System.Web.HttpContextBase" (you do not have a using directive or a link to assembly?) What could be wrong?

+7
asp.net-mvc identity
source share
1 answer

You seem to be missing a NuGet package called "Microsoft.Owin.Host.SystemWeb". Install the package from NuGet or use the package manager console to install the package.

Microsoft.Owin.Host.SystemWeb installation package

Hope this helps.

+20
source share

All Articles