System.TypeInitializationException: The type initializer for 'Mono.Unix.Native.Stdlib' threw an exception.

08-31 17:02:03: ### DEBUG ##########################
System.TypeInitializationException: The type initializer for 'Mono.Unix.Native.Stdlib' threw an exception. ---> System.DllNotFoundException: /usr/lib/libMonoPosixHelper.so
  at (wrapper managed-to-native) Mono.Unix.Native.Stdlib:GetDefaultSignal ()
  at Mono.Unix.Native.Stdlib..cctor () <0x40984e90 + 0x00013> in <filename unknown>:0
  --- End of inner exception stack trace ---
  at A.P.a (System.String[] ) <0x4097bf70 + 0x00183> in <filename unknown>:0
  at A.P.A (System.String[] ) <0x40954e00 + 0x0001f> in <filename unknown>:0
====================================

解决方案:

ll /usr/lib/libMonoPosixHelper.so   发现文件找不到

System.TypeInitializationException: The type initializer for 'Mono.Unix.Native.Stdlib' threw an exception.

上面图是处理之后的

原因:libMonoPosixHelper.so这个文件在 /usr/lib64/libMonoPosixHelper.so 里面

你需要做个链接

执行命令:ln -s /usr/lib64/libMonoPosixHelper.so /usr/lib/

上一篇:System.Security.SecurityException The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception


下一篇:『动善时』JMeter基础 — 23、JMeter中使用“用户自定义变量”实现参数化