Hi guys,
I've been using v2.1 for a while and decided to try to upgrade to v2.2.2 today, but I have run into entity framework migration issues because I had made other database changes (using EF migrations) before applying v2.2.2 changes.
This is the error that I see when the I target the 2.2.2 installation at my modified v2.1 database:
- Setup failed: Unable to update database to match the current model because there are pending changes and automatic migration is disabled. Either write the pending model changes to a code-based migration or enable automatic migration. Set DbMigrationsConfiguration.AutomaticMigrationsEnabled to true to enable automatic migration.
The problem is that I can't run either update-database or add-migration commands, because the NuGet console gives me the following error when I try (with the Default Project drop down set to SmartStore.Data, and even using the EFMigration Build Configuration):
A connection string could not be resolved for the parameterless constructor of the derived DbContext. Either the database is not installed, or the file 'Settings.txt' does not exist or contains invalid content.
My Settings.txt file exists in App_Data (and the connection string is perfect).
This sounds very similar to this reported bug: https://github.com/s...eNET/issues/617, but none of the suggestions work.
What is causing this problem?