尝试运行Mono应用程序时出现以下异常:
Unhandled Exception: [Some exception here -- this part changes] ---> System.ExecutionEngineException: SIGILL
at System.Collections.Hashtable..ctor (Int32 capacity, Single loadFactor, IHashCodeProvider hcp, IComparer comparer) [0x00000] in <filename unknown>:0
at System.Collections.Hashtable..ctor (Int32 capacity, Single loadFactor) [0x00000] in <filename unknown>:0
at System.Collections.Hashtable..ctor () [0x00000] in <filename unknown>:0
at [other calling locations that change]...
完全相同的系统映像(字面意思)在某些计算机上成功,例如在VMWare中,并且在某些其他硬件上出现此异常时失败。
P.S。我见过https://stackoverflow.com/questions/6388410/error-initialising-the-configuration-system-when-creating-tcpclient-in-mono但我已经有了一个machine.config文件,而且我没有使用mkbundle。
答案 0 :(得分:1)
问题是我预编译了(提前)不兼容的二进制文件。