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
More Related Contents:
- How and where to call Database.EnsureCreated and Database.Migrate?
- ASP.NET Identity DbContext confusion
- How to “warm-up” Entity Framework? When does it get “cold”?
- The type initializer for ‘System.Data.Entity.Internal.AppConfig’ threw an exception
- Unable to Retrieve Metadata
- ASP.NET Core change EF connection string when user logs in
- Difference between DropDownlist or DropDownListFor Html helper
- Can I set an unlimited length for maxJsonLength in web.config?
- Disable browser cache for entire ASP.NET website
- include antiforgerytoken in ajax post ASP.NET MVC
- ASP.Net MVC How to pass data from view to controller [closed]
- ASP.NET Identity with EF Database First MVC5
- Is it possible to use Razor View Engine outside asp.net
- Using VirtualPathProvider to load ASP.NET MVC views from DLLs
- How to render a DateTime in a specific format in ASP.NET MVC 3?
- How do I render a partial form element using AJAX
- MVC 5 Access Claims Identity User Data
- How to include a partial view inside a webform
- Connecting to Visual Studio debugging IIS Express server over the lan
- Entity Framework: how to solve “FOREIGN KEY constraint may cause cycles or multiple cascade paths”?
- How ViewBag in ASP.NET MVC works
- What is the claims in ASP .NET Identity
- What are the Web.Debug.config and Web.Release.Config files for?
- asp mvc routing with two optional parameters
- Creating a URL in the controller .NET MVC
- Paging & Sorting grids with ASP.Net MVC
- Web Config Transform not working
- Entity framework context as static
- All requests to ASP.NET Web API return 404 error
- ASP.NET session state and multiple worker processes