Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Identity doesn't create the tables in the database

$
0
0

I'm starting a new .NET 9 Blazor project. When I created the project, I chose to use the "Individual Account" option. So, the Visual Studio procedure added the Identity to the project. I don't change anything, the project is as it is out of the box.

enter image description here

When I run the project, I want to register a new user. When I click to register the user, I always get the error

Microsoft.Data.SqlClient.SqlException: Invalid object name 'AspNetUsers'

enter image description here

This error occurs if I use a SQL database on Azure or a local database. I changed the connection string in the appsettings.json. In any case, the tables for Identity are not created.


Viewing all articles
Browse latest Browse all 4839

Trending Articles