Upgrade Details
Describes how to upgrade existing installations to new versions.
In this article, you will find everything you need to upgrade your Umbraco CMS project.
If you are new to upgrades, be sure to read the upgrade introduction article first.
Upgrade to a new Major
You can upgrade to a new major version of Umbraco CMS directly by using NuGet.
You must upgrade to the closest Long-term Support (LTS) major version before upgrading to the latest version. For Umbraco 10, the closest long-term support version is Umbraco 13. Once the project is on Umbraco 13, you can move on to Umbraco 14.
Switching to a new major version of Umbraco CMS also means switching to a new .NET version. Ensure that any packages used on your site are compatible with this version before upgrading.
The package compatibility can be checked on the package's download page. Locate the Project compatibility area and select View details to check version-specific compatibility.
Choose the correct .NET version
Use the table below to determine which .NET version to upgrade to when going through the steps below.
16
9.0
15
9.0
14
8.0
13
8.0
12
7.0
11
7.0
10
6.0.5
Upgrade your project using Visual Studio
It's recommended that you upgrade the site offline and test the upgrade fully before deploying it to the production environment.
Stop your site in IIS to prevent any changes from being made while you are upgrading.
Open your Umbraco project in Visual Studio.
Right-click on the project name in the Solution Explorer and select Properties.
Select the .NET version from the Target Framework drop-down.
Go to Tools > NuGet Package Manager > Manage NuGet Packages for Solution...
Go to the Installed tab in the NuGet Package Manager.
Upgrade Umbraco.Cms.
a. Select the correct version from the Version drop-down.
b. Click Install to upgrade your project.
Make sure that your connection string has
TrustServerCertificate=True
to complete the upgrade successfully:
"ConnectionStrings": {
"umbracoDbDSN": "Server=YourLocalSQLServerHere;Database=NameOfYourDatabaseHere;User Id=NameOfYourUserHere;Password=YourPasswordHere;TrustServerCertificate=True"
}
Restart your site in IIS, then build and run your project to finish the installation.
If your database experiences timeout issues after an upgrade, it might be due to the ASP.NET Core Module's startupTimeLimit
configuration.
To fix the issue, try increasing the startupTimeLimit
in the web.config
file. Additionally, you can set the Connection Timeout
value in the ConnectionString
in the appsettings.json
file.
Potential issues and gotchas
If you receive an error that a deploy license is missing even though you have a valid license, follow the guide below.
Google Chrome has aggressive caching, so when experiencing startup issues, clear the cache and cookies thoroughly. Ideally, this should be done for other browsers as well.
Nudge the cache in Chrome following these steps:
Open the developer tools (F12).
Go to the settings (Cog icon).
Ensure that "Disable cache (while DevTools is open)" is checked.
Refresh the page, and the cache will be invalidated.
Right-click the "reload" button next to your address bar and choose "Empty cache and hard reload".
All caches and cookies have now been cleared from your Google Chrome browser. Generally, it is a good thing to do occasionally.
Upgrade to a new Minor
NuGet installs the latest version of the package when you use the dotnet add package
command unless you specify a package version:
dotnet add package Umbraco.Cms --version <VERSION>
Add a package reference to your project by executing the dotnet add package Umbraco.Cms
command in the directory that contains your project file.
Run dotnet restore
to install the package.
For Umbraco 9
If you are using SQL CE in your project, you need to run dotnet add package Umbraco.Cms.SqlCe --version <VERSION>
before the dotnet restore
command. From Umbraco 10, SQL CE has been replaced with SQLite, so a dotnet restore
should be sufficient. If this is not working, then you need to run dotnet add package Umbraco.Cms.Persistence.Sqlite --version <VERSION>
, and then dotnet restore
.
When the command completes, open the .csproj
file to make sure the package reference was updated:
<ItemGroup>
<PackageReference Include="Umbraco.Cms" Version="x.x.x" />
</ItemGroup>
Legacy Umbraco
The steps outlined in this article apply to Umbraco version 10 and later versions.
Are you upgrading to a minor version for Umbraco 6, 7, or 8? You can find the appropriate guide below:
Minor upgrades for Umbraco 8Minor upgrades for Umbraco 7Last updated
Was this helpful?