There was an error trying to log you in: ‘ (500)’


This error happens at first place if the database doesn’t exist in your database server. To fix the error:

  1. Update the connection string in your appsettings.json and set the correct database server name, username, and password. you can skip this step, if using localdb
  2. Execute Add-Migration (if needed). Execute Database-update.

To Execute Database-Update, Go to View > Other Windows > Package Manager Console and type database-update.

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *