New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scheme already exists: Identity.Application #8223
Comments
Not sure if this is a bug, an issue with doc or just I've miss-understood, however believe I have solved my problem. IdentityHostingStartup.cs contained;
have commented this out and it seems to be working so far. |
How do you configure the RequiredConfirmEmail and RequiredConfirmedPhoneNumber when this service code is commented out? |
@jimgit I think what he was saying was he had BOTH Well that's what I had :-) |
In my case I had |
Thanks for contacting us. We believe that the question you've raised have been answered. If you still feel a need to continue the discussion, feel free to reopen it and add your comments. |
For others. I store my context in another project (which is probably the reason it did not get populated in the drop down for creating the identity). So I removed the following line from IdentityHostingStartup.cs services.AddDefaultIdentity<IdentityUser>()
.AddEntityFrameworkStores<CreatedContext>(); and updated the Startup.cs file with services.AddDefaultIdentity<IdentityUser>()
.AddEntityFrameworkStores<CreatedContext>(); I did´t notice right away that the CreatedContext derived from IdentityDbConext public class CreatedContext : IdentityDbContext<IdentityUser> |
i have a similar issue but If i comment out that line that creates the identity I get no identy created but if I keep it I create 2 . I don't understand how this is possible. here is my startup.cs
|
I think its scoffoling problem that add these line in IdentityHostingStartup.cs without checking services
now you have the problem |
Sturlath, this worked for me as well...does anyone know if there will be any issues if services.AddDefaultIdentity() are removed from the IdentityHostingStartup.cs file or is this required in a different way? |
For reference, I had the same issue when using |
Have followed Create full identity UI source but am now receiving an error - “InvalidOperationException: Scheme already exists: Identity.Application” - when running solution. Startup.cs below;
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: