简体   繁体   中英

IApplicationbuilder does not contain definition for CreatePerOwinContext

I am just converting an existing Mvc application into.Net Core now here is the problem when creating perOwinContext

  app.CreatePerOwinContext<ApplicationUserManager>(ApplicationUserManager.Create);

在此处输入图像描述

because no extension method of this class IApplicationBuilder contains this method. Are there any alternatives to this in.Net Core?

I have also read this but can't figure out how to resolve this case?

It's belong to Microsoft.AspNet.Identity.Owin package
Please install Microsoft.AspNet.Identity.Owin by Nuget Package Manager.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM