Error while upgrade from Umbraco 14 to 15

I tried to upgrade my website from Umbraco 14 to 15.

This the error I get when try to navigate to my website after I did dotnet publish and copied binReleasenet9.0publish to ftp:

You do not have permission to view this directory or page.

In Azure I changed .NET version from 8 to 9.

Any idea?

On local I was able to upgrade quickly and with no issues. But when deployed to Azure I can’t access.

I tried to look in the KUDU console in Azure but it’s not even give the latest updates. It’s has logs from few months ago.

When upgraded, obviously I deleted all files of U14, stopped the app, then copied the files of U15.

Please advise.

Thanks.

7

I created a sample Umbraco 14 application with .NET Core 8 and deployed it to Azure. Then, I upgraded it to Umbraco 15 with .NET Core 9 and redeployed it to Azure.

I upgraded my app by changing the TargetFramework to net9.0 and updating Umbraco.Cms to version 15.0.0 in the .csproj file.

Below is my complete .csproj file:

<Project Sdk="Microsoft.NET.Sdk.Web">
  <PropertyGroup>
    <TargetFramework>net9.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Umbraco.Cms" Version="15.0.0" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.ICU.ICU4C.Runtime" Version="72.1.0.3" />
    <RuntimeHostConfigurationOption Include="System.Globalization.AppLocalIcu" Value="72.1.0.3" Condition="$(RuntimeIdentifier.StartsWith('linux')) or $(RuntimeIdentifier.StartsWith('win')) or ('$(RuntimeIdentifier)' == '' and !$([MSBuild]::IsOSPlatform('osx')))" />
  </ItemGroup>
  <PropertyGroup>  <CopyRazorGenerateFilesToPublishDirectory>true</CopyRazorGenerateFilesToPublishDirectory>
  </PropertyGroup>
  <PropertyGroup>
  <RazorCompileOnBuild>false</RazorCompileOnBuild>  <RazorCompileOnPublish>false</RazorCompileOnPublish>
  </PropertyGroup>
</Project>

Make sure to run the build and publish commands after upgrading to Umbraco 15.

If you are using a local database, upgrade it to Azure SQL Database.
Refer this MSDoc to Migrate Database to Azure SQL Database.

Below is my Connection String In appsetting.json:

 "ConnectionStrings": {
    "umbracoDbDSN": "Server=tcp:<ServerName>.database.windows.net,1433;Database=<DataBaseName>;User ID=<UserName>@<ServerName>;Password=<Password>",
    "umbracoDbDSN_ProviderName": "Microsoft.Data.SqlClient"
  }

Before Deploying to my App to Azure I Changed the .NET version to .NET9(STS) in Configuration Section of Azure Web App.

After Successful deployed to Azure Using FTP, I got the same issue. When I checked the Kudu console, I found that my deployed files were stored in the wwwroot/publish folder.

I’ve changed the path mapping from site/wwwroot to site/wwwroot/publish in Configuration section of Azure Web App as shown below.

Azure Output:

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật