I want to run FiveM on a Debian 8 Server and ive got this Error:
Missing method System.Array::Empty<[1]>() in assembly /usr/lib/mono/4.5/mscorlib.dll, referenced in assembly /home/gta/asdf/fivem-server/CitizenMP.Server.exe
Unhandled Exception:
System.MissingMethodException: Method not found: 'System.Array.Empty'.
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[<Start>d4] (CitizenMP.Server.<Start>d4& stateMachine) [0x00000] in <filename unknown>:0
at CitizenMP.Server.Program.Start (System.String configFileName) [0x00000] in <filename unknown>:0
at CitizenMP.Server.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method not found: 'System.Array.Empty'.
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[<Start>d4] (CitizenMP.Server.<Start>d4& stateMachine) [0x00000] in <filename unknown>:0
at CitizenMP.Server.Program.Start (System.String configFileName) [0x00000] in <filename unknown>:0
at CitizenMP.Server.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
what can i do?
I have times in the directory “/usr/lib/mono/4.5/” an “mscorlib.dll” uploaded since this has been missing and this time I get the following error:
* Assertion at class.c:5744, condition `class->field.count == 0' not met
Native stacktrace:
mono() [0x4b5ca0]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xf890) [0x7f95aff92890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37) [0x7f95afc0d067]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7f95afc0e448]
mono() [0x6406e5]
mono() [0x640853]
mono() [0x529d00]
mono(mono_class_get_full+0xe2) [0x52a762]
mono(mono_class_from_name+0xfe) [0x52ab7e]
mono() [0x5ac9d6]
mono() [0x424fd6]
mono(mono_main+0x288) [0x48a898]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f95afbf9b45]
mono() [0x419fad]
Debug info from gdb:
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
./run.sh: line 4: 23742 Aborted MONO_PATH=$fx_root/mono/ mono $f x_root/CitizenMP.Server.exe $*
How should I proceed now?
Hi,
I had the same problem(s) but i get resolved it, here’s what I did:
you’ll need root/sudo for all steps
- apt-get purge mono-complete
- apt-get purge mono-runtime
- rm /etc/apt/sources.list.d/mono-xamarin.list
- follow the guide on the official mono page step by step so you have 3 entrys in the mono-xamarin.list and do an apt-get updade after adding the first entry
- apt-get update
- apt-get upgrade
- apt-get update (again)
8.apt-get install mono-complete
hopefully this works for you too
webhead
Thanks my Friend!! It worked
Im so happy right now.
Best regards Daniel.
— SOLVED —