How do you setup the database from source?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
Can you setup the nopcommerce database directly from the source code?

- download source code
- update Settings.txt connection string
- create a database in SQL matching the name
- compile and run source code
- open /install
- database appears to get initialized and tables etc. are created but then I get an error


Application_AuthenticateRequest => SetWorkingCulture => InsertGuestCustomer() 'Guests' role could not be loaded
11 years ago
Your second step "- update Settings.txt connection string" is likely causing the error as there should be no connection string in Settings.txt to run install. Install will create the connection string based on the information you provide on the install form.

You should rename App_Data\Settings.txt and since you are running the source code from visual studio, stop the development server (via its icon in the taskbar), relaunch it (Ctrl + F5), and you should be directed to /install.

.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.