FileLoadException .net core docker application


What is the easiest way to find the reason for a FileLoadException: in docker, when everything is running on local windows and linux machine?

System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
File name: 'Microsoft.Extensions.Logging.Abstractions, Version=, Culture=neutral, PublicKeyToken=adb9793829ddae60'
   at Microsoft.Extensions.DependencyInjection.LoggingServiceCollectionExtensions.AddLogging(IServiceCollection services, Action`1 configure)
   at Microsoft.Extensions.DependencyInjection.LoggingServiceCollectionExtensions.AddLogging(IServiceCollection services)
   at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
   at Microsoft.Extensions.Hosting.HostBuilder.Build()
   at Simplic.Cloud.WorkerService.BaseProgram.Main(String[] args, Action`1 setup, Action`1 configureHostBuilder)


I could reproduce the problem on ubuntu as well. This question will be updated with information from: Wrong assembly version in output when compiling under linux (.net core)

asked on Stack Overflow Nov 6, 2020 by BendEg • edited Nov 7, 2020 by BendEg

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0