Unable to create an object of type 'AppDbcontext'. I run into this error

Viewed 37
1 Answers

Infer from your error screenshot that you have this error when migrating your database. You can follow the steps below to solve:

  1. Make sure to set your web project as Set as Startup Project
  2. In Package Manager Console, set your data access layer (if any) as a default project
  3. Then run the command again

If you still have this error, there are some other solutions in this post, you can refer to it

Related