I\'m using web deploy to deploy an MVC4 application using EF5 code first. I made a publish profile called \"development\" that uses web deploy for application and database u
Since asking this question, I've run into this problem several more times in multiple versions of MVC and EF (all code first though of cource). When it happens, don't save the changes to your publish profile, make sure you are on the 'debug' build configuration, clean solution and rebuild solution. And if all that fails, restart Visual Studio and try again. So far, this has always solved the problem for me.