© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
15 replies
morry329#

MySqlException: Table 'searchhome.aspnetusers' doesn't exist

So I wanted to do the following: I have already created a simple database with a table. On that db table some values have been added. I wanted to display that added value on my simple ASP.NET Core app. However, the dotnet run gave me the error as per screenshot attached
 (aspnetusers does not exist)
 (aspnetusers does not exist)


The
dotnet ef database update
dotnet ef database update
leads to the same error (aspnetusers does not exist). I have tried adding that aspnetuser table or tried updating the database(
INSERT INTO 
INSERT INTO 
__EFMigrationsHistory
 (
 (
MigrationId
, 
, 
ProductVersion
) VALUES ('00000000000000_CreateIdentitySchema', '7.0.2');
) VALUES ('00000000000000_CreateIdentitySchema', '7.0.2');
)

None of these helped me out.

All my codes are here https://pastebin.com/kdgjhGTu

Could anyone kindly point me in the right direction??
Pastebin
//Controller Classusing System.Diagnostics;using Microsoft.AspNetCo...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

MySqlException: Field 'CreatedOnUtc' doesn't have a default value
C#CC# / help
2y ago
HttpContext.Current doesn't exist
C#CC# / help
4y ago
✅ EFCore 8 MySQL - Table doesn't exist, but it does?
C#CC# / help
2y ago
✅ Error that seemingly doesn't exist.
C#CC# / help
3y ago