Error: Could not load file or assembly on Linux

0

I am using Ubuntu 20.04 and trying to run .NETCore Web App. I am using command sudo /usr/bin/dotnet /var/netcore/publish/App.dll where App.dll is Application.

I get an error:

Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Extensions.Hosting.Abstractions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (0x80131040) File name: 'Microsoft.Extensions.Hosting.Abstractions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'

Any ideas?

c#
linux
.net-core
asked on Stack Overflow Sep 3, 2020 by ahotko

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0