Enable Migration error - object refreence, MigrationsDomainCommand

ef-migrations entity-framework

Question

My MVC 4 project recently received an EF 6.0 upgrade. Models and dbcontext are contained in a single project I have. Because of the following errors, I was unable to enable migrations:

System.NullReferenceException: Object reference not set to an instance of an object. at System.Data.Entity.Migrations.Extensions.ProjectExtensions.GetPropertyValue[T](Project project, String propertyName) at System.Data.Entity.Migrations.MigrationsDomainCommand.GetFacade(String configurationTypeName, Boolean useContextWorkingDirectory) at System.Data.Entity.Migrations.EnableMigrationsCommand.FindContextToEnable(String contextTypeName) at System.Data.Entity.Migrations.EnableMigrationsCommand.<>c__DisplayClass2.<.ctor>b__0() at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command) Object reference not set to an instance of an object.

Nothing seems to be working after two days of searching for an answer. Please assist me.

1
6
7/14/2017 2:20:28 AM

Popular Answer

ZZZ_tmp
9
3/12/2014 10:14:37 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow