How to reinstall fresh database with sample data after delete the existing Database

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
I delete the database in my test environment and I remove the App_Data\Settings.txt and App_Data\InstalledPlugins.txt.  I receive the "No database instance" error when I run from my VS2010.  How to reinstall the db with sample data again?
12 years ago
Clean/Rebuild the solution and try again
12 years ago
Thanks a lot it works.
9 years ago
Thanks, this works indeed.
7 years ago
I tried all these solutions on Nopcommerce 3.8, and i have the same error("No database instance..."), so for those who get this issue, try this:
- delete the BIN folder on NOP.WEB project,
- delete the settings.txt file in NOP.WEB\App_Data folder (if you do not see this file in visual studio, click on "Show all files" in solution explorer menu...)
- clean and rebuild the entire solution
- finally launch application.
5 years ago
If you are running the version 4.1, it is enough to remove from the appsettings.json from App_Data the connectionString line and re-run the application. That will recreate the whole application from scratch
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.