Upgraded to Entity Framework 6.
Added migration to make the model work in EF6.
Remove publish profiles from project file.
Working again, after update to MVC5.