This error was due to the fact that Entity Framework 6.0 was installed in the GAC. Once it was uninstalled, everything worked properly.