New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation error #617
Comments
Try this in the NuGet package manager console:
Then
If the problem reoccurs, execute:
Open the newly created migration file and have a look at both |
I did but this time got another error: 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. |
Please choose |
Hello, |
I've found that if I change AutomaticMigrationsEnabled = false; to true in MigrationsConfigurations.cs, the installation process continues, but ends with the following error: Setup failed: There is already an object named 'QuantityUnit' in the database. Any help will be very appreciated. |
Hi, A quick google search, led to results as specified above...but still the problem persists...in nuget console I get this error Help appreciated.. |
We fixed the issue: a3382aa VERY IMPORTANT: if you have a database already (because you installed successfully earlier) you MUST downgrade your EF migration to V211 BEFORE pulling this commit.
|
It worked like a charm with a brand new database (because I've never got it installed before). |
It's been a while since it closed :) but I would like to share another solution : "AutomaticMigrationsEnabled" in the following files is false by default. I solved this way this parameter in following source files ....\src\Libraries\SmartStore.Data\Migrations\Configuration.cs and .....\src\Libraries\SmartStore.Data\Migrations\MigrationsConfiguration.cs |
I didn't find any setting.txt in this source project, May I know how to get this setting.txt |
i have download the source code from github then i open the folder of App_Data/Tenants/Default/ |
I've tried to install 2.x but got error this:
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.
How can i solve ?
Thanks
The text was updated successfully, but these errors were encountered: