-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: azure-app-service-plugin
-
Environment:Staging
Currently we are investigating an issue we have with one of our deploys to an Azure webservice, we do nightly deploys and sometimes have the following issue after a deployÂ
System.BadImageFormatException: Could not load file or assembly 'Microsoft.EntityFrameworkCore.Relational, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. Format of the executable (.exe) or library (.dll) is invalid. File name: 'Microsoft.EntityFrameworkCore.Relational, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' at Microsoft.EntityFrameworkCore.SqlServerDbContextOptionsExtensions.UseSqlServer at OnePlatform.GatewayAccessService.API.Startup.SetDbContextOptions(DbContextOptionsBuilder options) in C:\Jenkins-Slave\workspace\GatewayAccessService\GatewayAccessService\src\OnePlatform.GatewayAccessService.API\Startup.cs:line 174 at Microsoft.Extensions.DependencyInjection.EntityFrameworkServiceCollectionExtensions.<>c__DisplayClass3_0`2.<AddDbContextPool>b__0(IServiceProvider _, DbContextOptionsBuilder ob) at Microsoft.Extensions.DependencyInjection.EntityFrameworkServiceCollectionExtensions.
Â
When we do a re-deploy with the same binaries all worksÂ
Â
We`ve downloaded the dll`s from the Azure App Service and decompiled it with IlSpy

Â
When we check the build artifacts from Jenkins the dll is ok

Â
Has anybody experienced this issue before? Do you have any tips on how to troubleshoot this?Â
We are currently investigating it also through a Microsoft Support Case - but currently they are pointing to the Jenkins Plugin.Â
Â
Â
Â
Â
Â