NopCommerce Platform introduce Part 3 -upgrade
Table of Contents
upgrade from 4.5 to 4.60.1 readme - 20230125 updated
step 1:read upgrade_to_4.40_and_above_readme.txt
IMPORTANT. We don't use SQL upgrade scripts anymore. Upgrade is performed automatically with migrations (during the first application start).
IMPORTANT. If you're upgrading nopCommerce to version 4.50 or above, please ensure that your connection string contains one of the following parameters: "Encrypt=false" or "TrustServerCertificate=True" (depending on your server requirements). You can manually add these parameters to your connection string in the \App_Data\appsettings.json file. This step is caused by the "Microsoft.Data.SqlClient" library that changed the default value of the "Encrypt" option from "false" to "true".
Steps:
1. Make a backup of everything on your site, including the database. This is extremely important so that you can roll back to a running site no matter what happens during migration.
2. Remove all files from the previous version except JSON files in the 'App_Data' directory (dataSettings.json, plugins.json, appsettings.json), move them to the safe place.
3. Upload new site files
4. Copy back JSON files in the 'App_Data' directory.
5. Ensure that everything is OK
Notes:
1. If you stored your pictures on the file system, then also backup them (\wwwroot\images\) and copy back after upgrade
step 2:backup sqlserver database to another name database (msly-450)
run SQL Server 2016 Management Studio on windows 10(64 bit)
source database:xxx
target database:new database
select import and export database
driver:
sql server native client 1.0
user:
SRKSERVER\SQLEXPRESS
TrustServerCertificate
99
Source Location : SRKSERVER\SQLEXPRESS
Source Provider : SQLNCLI11
Destination Location : SRKSERVER\SQLEXPRESS
Destination Provider : SQLNCLI11
The package will copy 124 tables.
The package will not be saved.
The package will be run immediately.
20240421 msly-460.1
step 3:
step 4:move *.json file
copy JSON files in the 'App_Data' directory to new 'App_Data' directory
copy F:\developer\nopCommerce_4.50.0_Source\src\Presentation\Nop.Web\App_Data\*.json F:\developer\nopCommerce_4.60.1_Source\src\Presentation\Nop.Web\App_Data\*.json
step 5: run
ok
step 6:image files
#image files for log and icon
Themes/DefaultClean/Content/images/logo.png
icons/icons_0/favicon-32x32.png
#image files for product thumbs
nopCommerce_4.60.1_Source\src\Presentation\Nop.Web\wwwroot\images\thumbs
upgrade from 4.60.1 to 4.60.6 .Net 8.x - 20230125 updated
F:\>cd F:\developer_msly\nopCommerce_4.60.6_Source\src\Presentation\Nop.Web
F:\developer_msly\nopCommerce_4.60.6_Source\src\Presentation\Nop.Web>dotnet run
dotnet run --urls http://localhost:5005
output
F:\developer_msly\nopCommerce_4.60.6_Source\src\Presentation\Nop.Web>dotnet run --urls http://localhost:5005
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://localhost:5005
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
Content root path: F:\developer_msly\nopCommerce_4.60.6_Source\src\Presentation\Nop.Web