Azure / app-service-announcements-discussions

Discussions for announcements from https://github.com/Azure/app-service-announcements/
MIT License
44 stars 5 forks source link

[Discussion] .NET Core 2.1.3 deployment to App Service #65

Closed davidebbo closed 6 years ago

davidebbo commented 6 years ago

Thread to discuss the deployment of 2.1.3 to App Service. Related to https://github.com/Azure/app-service-announcements/issues/130.

vladkuz commented 5 years ago

2.1.5 is out. App Services upgrade date?

davidebbo commented 5 years ago

@vladkuz Tracked by https://github.com/Azure/app-service-announcements/issues/139.

vladkuz commented 5 years ago

@davidebbo , thanks!

davidebbo commented 5 years ago

@vladkuz It's deployed now.

joshuataylor commented 5 years ago

Is this just for Windows, or is Linux not included with this? Seeing 2.1.2 on Linux on App Service.

davidebbo commented 5 years ago

@joshuataylor This announcement us just for Windows. @rramachand21 may be able to comment on the Linux side.

frankkilcommins commented 5 years ago

This issue still happens sporadically within a published app service for West Europe. Our CI/CD deploys via ARM and tears down the resources in our Dev/TST resource groups after our testing completes.

I noticed over the last 2 days that following certain deployment (all resources recreated each time) that we get the following exception accessing the webapp: FileLoadException: Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Core, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

The dotnet runtimes from the app service: Microsoft.AspNetCore.All 2.1.4 [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.7 [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.2.1 [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.4 [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.7 [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.2.1 [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 1.0.12 [D:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 1.1.9 [D:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.0.9 [D:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.4 [D:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.7 [D:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.1 [D:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]

I do see reference to "Microsoft.AspNetCore.SignalR": "1.0.1" as mentioned by @natemcmaster above in my project .deps file in wwwroot which I believed to be solved now. The sporadic behaviour is strange.

Project References:

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp2.1</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.App" />
    <PackageReference Include="Microsoft.AspNetCore.Authentication.AzureAD.UI" Version="2.1.1" />
    <PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.1.2" PrivateAssets="All" />
    <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.1.1" />
    <PackageReference Include="X.PagedList" Version="7.6.0" />
    <PackageReference Include="X.PagedList.Mvc.Core" Version="7.6.0" />
  </ItemGroup>

</Project>
natemcmaster commented 5 years ago

@frankkilcommins please see https://github.com/aspnet/AspNetCore/issues/3503.