[JIRA] (JENKINS-61899) BadImageFormatException after dotnet core deploy

2 views
Skip to first unread message

jonathan.maes@niko.eu (JIRA)

unread,
Apr 14, 2020, 11:55:02 AM4/14/20
to jenkinsc...@googlegroups.com
Jonathan Maes created an issue
 
Jenkins / Bug JENKINS-61899
BadImageFormatException after dotnet core deploy
Issue Type: Bug Bug
Assignee: Azure DevOps
Attachments: image-2020-04-14-17-51-56-941.png, image-2020-04-14-17-52-35-655.png
Components: azure-app-service-plugin
Created: 2020-04-14 15:54
Environment: Staging
Labels: plugin
Priority: Minor Minor
Reporter: Jonathan Maes

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. 

 

 

 

 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages