我刚刚使用主存储库通过 Git 安装了 mono 3.2.3。我正在使用带有 fastcgi-server4 的 nginx 1.4。现在我的 .NET4.5 的 MVC4 应用程序不工作。它给了我一个400:
System.ArgumentException
Destination array was not long enough. Check destIndex and length, and the array's lower bounds
Description: HTTP 400.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): mscorlib.
Exception stack trace:
at (wrapper xdomain-invoke) Mono.WebServer.FastCgi.Responder:SendOutput (byte[],int)
at (wrapper remoting-invoke-with-check) Mono.WebServer.FastCgi.Responder:SendOutput (byte[],int)
at Mono.WebServer.FastCgi.WorkerRequest.SendResponseFromMemory (System.Byte[] data, Int32 length) [0x00000] in <filename unknown>:0
at System.Web.HttpRuntime.FinishWithException (System.Web.HttpWorkerRequest wr, System.Web.HttpException e) [0x00000] in <filename unknown>:0
at System.Web.HttpRuntime.Process (System.Web.HttpWorkerRequest req) [0x00000] in <filename unknown>:0
at System.Web.HttpRuntime.RealProcessRequest (System.Object o) [0x00000] in <filename unknown>:0
at System.Web.HttpRuntime.ProcessRequest (System.Web.HttpWorkerRequest wr) [0x00000] in <filename unknown>:0
at Mono.WebServer.MonoWorkerRequest.ProcessRequest () [0x00000] in <filename unknown>:0
其中许多:
Mono: AOT failed to load AOT module /usr/lib/mono/gac/System.Transactions/4.0.0.0__b77a5c561934e089/System.Transactions.dll.so:
/usr/lib/mono/gac/System.Transactions/4.0.0.0__b77a5c561934e089/System.Transactions.dll.so: cannot open shared object file: No such file or directory
Mono: AOT failed to load AOT module /usr/lib/mono/gac/System.Messaging/4.0.0.0__b03f5f7f11d50a3a/System.Messaging.dll.so:
/usr/lib/mono/gac/System.Messaging/4.0.0.0__b03f5f7f11d50a3a/System.Messaging.dll.so: cannot open shared object file: No such file or directory`
我非常感谢任何帮助来解决这个问题并让 mono MVC 4.5 运行。
兄弟。
奥马尔