After update, i run this shell script: run.sh
and got this in console output:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Diagnostics.Tracing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'System.Diagnostics.Tracing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices () [0x00000] in <filename unknown>:0
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build () [0x00000] in <filename unknown>:0
at CitizenMP.Server.HTTP.HttpServer.Start () [0x00000] in <filename unknown>:0
at CitizenMP.Server.Program+<Start>d__4.MoveNext () [0x00000] in <filename unknown>:0
And server is shutting down.
System info: Ubuntu 14.04.3 x64
Do not know what to do. Everything worked good before update.
Same problem if i try to run CitizenMP.Server.exe
via mono straightly.
Solution (thanks to @ScAnY):
On older Debian/Ubuntu version, you don’t have latest version of Mono by default, you need to do few commands to upgrade to 4.6 :
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo “deb http://download.mono-project.com/repo/debian wheezy main” | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
echo “deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main” | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
echo “deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main” | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get install mono-complete
after this, you can see your version with this command :
mono --version
Mono JIT compiler version 4.6.2 (Stable 4.6.2.7/08fd525 Mon Nov 21 12:08:40 UTC 2016)