I am getting the following error on linux after publishing my app. I thought this is a normal ddl issue but I decided to run the exact commands my github deploy runs on my pc to see if that is the issue and it isn't. I deployed on my own machine to a folder that never existed and the app was running fine.
Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'Autofac, Version=126.96.36.199, Culture=neutral, PublicKeyToken=17863af14b0044da'. The located assembly's manifest definition does not match the assembly reference. (0x80131040) File name: 'Autofac, Version=188.8.131.52, Culture=neutral, PublicKeyToken=17863af14b0044da' at Api.Program.CreateHostBuilder(String args) at Api.Program.Main(String args) in /home/runner/work/Quiplogs_API/Quiplogs_API/Api/Program.cs:line 12 Aborted (core dumped)
Now I am wondering if its a sdk issue but I dont see too much difference in my and the linux machines sdk
2.2.401 [C:\Program Files\dotnet\sdk] 3.1.406 [C:\Program Files\dotnet\sdk] 5.0.100 [C:\Program Files\dotnet\sdk] 5.0.103 [C:\Program Files\dotnet\sdk]
My Linux machine
3.1.404 [/usr/share/dotnet/sdk] 5.0.200 [/usr/share/dotnet/sdk]
Has anyone experienced something like this before? I am running on Ubuntu 20.04.1
User contributions licensed under CC BY-SA 3.0