| 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. |