1
我編譯的單聲道源代碼(使用./configure,make,make install)爲centos,似乎沒關係。LitJson通過異常使用單聲道centos
mono --version
Mono JIT compiler version 2.10.9 (tarball 2013年 01月 02日 星期三 13:43:05 CST)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: Included Boehm (with typed GC and Parallel Mark)
但是當我嘗試運行它調用LitJson一個ashx的文件,我得到了
<p><strong>Description: </strong>HTTP 500. Error processing request.</p>
<p><strong>Stack Trace: </strong></p><table summary="Stack Trace" class="sampleCode">
<tr><td><pre>System.MissingMethodException: Method not found: 'System.Reflection.MethodInfo.op_Inequality'.
at LitJson.JsonMapper.ToObject (System.Type type, System.String json) [0x00000] in <filename unknown>:0
at MobiusServer.Login..ctor (System.String jsondata) [0x00000] in <filename unknown>:0
at MobiusServer.MobiusHandler.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0
at System.Web.HttpApplication+<Pipeline>c__Iterator3.MoveNext() [0x00000] in <filename unknown>:0
at System.Web.HttpApplication.Tick() [0x00000] in <filename unknown>:0 </pre></td></tr>
</table>
<hr style="color: silver"/><strong>Version information: </strong> Mono Runtime Version: <tt>2.10.9 (tarball 2013/01/02 Wed 13:43:05 CST)</tt>; ASP.NET Version: <tt>2.0.50727.1433</tt></body></html>
<!--
[System.MissingMethodException]: Method not found: 'System.Reflection.MethodInfo.op_Inequality'.
at LitJson.JsonMapper.ToObject (System.Type type, System.String json) [0x00000] in <filename unknown>:0
at MobiusServer.Login..ctor (System.String jsondata) [0x00000] in <filename unknown>:0
at MobiusServer.MobiusHandler.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0
at System.Web.HttpApplication+<Pipeline>c__Iterator3.MoveNext() [0x00000] in <filename unknown>:0
at System.Web.HttpApplication.Tick() [0x00000] in <filename unknown>:0
-->
我可以運行在我的Mac OS X相同的程序,還安裝了單2.10.9運行。 我做錯了什麼或錯過了什麼? 謝謝!