Stop creating a second Identity DbContext. Rather than clicking the plus sign, select the Identity DbContext you already created. It not clear why you keep creating two DbContext classes. If you have more than one project in the solution make sure you select the correct "Default Project" in the Package Manager Console.
Authentication - Context - no context was found
![](https://techprofile.blob.core.windows.net/images/cQ9dvXlMgEyrsdQDCUONWg.png?8DB3C1)
Dean Everhart
1,536
Reputation points
Having really difficult getting through Migration of first Authentication tutorial... Any help appreciated.
PM> Add-Migration CreateIdentitySchema -Context -AuthenticationTutorialContext
Build started...
Build succeeded.
No DbContext named '-AuthenticationTutorialContext' was found.
PM> Add-Migration CreateIdentitySchema -Context -AuthenticationTutorialContext
Build started...
Build succeeded.
No DbContext named '-AuthenticationTutorialContext' was found.
GitHub: Authentication Tutorial: Introduction to Identity on ASP.NET Core / Migrations Environment: Net Core 6, Visual Studio Community 2022 (64 bit), WIndows 11
At the scaffolding step, I selected....
Layout
Views.Shared._Layout.cshtml
Context
Areas.Identity.Data.AuthenticationTutorialContext.cs
Note: second context file at Data.ApplicationDbContext ?