I’m trying to create a simple database in ASP.NET MVC using DbContext and DbSets. The project uses Entity Framework, so I tried running
Enable-Migrations
(yes, I know it’s automatically set to true, or so I’ve been told). I then tried to run Add-Migration Initial
and I always get the same exception thrown:
Exception has been thrown by the target of an invocation
There is a huge message above it and if needed I’ll provide it.
I tried following the link the console suggested and enabled
<loadFromRemoteSources enabled='true'/>
created a new project to see if maybe the issue was in my code. Still the same issues. I checked for the latest versions and its all up to date
Dr Xizt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1