0

我已经全新安装了带有 mono 和 mod_mono 的 Ubuntu 服务器 11.10,我正在尝试运行一个 asp.net 站点(需要 .net 4.0),但我得到的只是这个非常无用的堆栈跟踪:

Server Error in '/' Application

method arguments are incompatible

Description: HTTP 500. Error processing request.

Stack Trace:

System.ArgumentException: method arguments are incompatible
  at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, Boolean throwOnBindFailure, Boolean allowClosed) [0x00000] in <filename unknown>:0 
  at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method) [0x00000] in <filename unknown>:0 
  at System.Web.HttpApplicationFactory.AddHandler (System.Reflection.EventInfo evt, System.Object target, System.Web.HttpApplication app, System.Reflection.MethodInfo method) [0x00000] in <filename unknown>:0 
  at System.Web.HttpApplicationFactory.AttachEvents (System.Web.HttpApplication app) [0x00000] in <filename unknown>:0 
  at System.Web.HttpApplication.InitOnce (Boolean full_init) [0x00000] in <filename unknown>:0 

Version information: Mono Runtime Version: 2.10.5 (Debian 2.10.5-1); ASP.NET Version: 4.0.30319.1

任何人都对如何调试或找出实际原因有任何想法?如果某处有更详细的日志?

4

1 回答 1

0

我假设您在调试模式下运行,如下所示:

ASP 调试

要对 Apache mod_mono 模块执行相同操作,请在 apache 配置文件中使用 MonoDebug true 指令。

那就是您执行以下操作:

MonoSetEnv MonoDebug true

通常在您的 httpd.conf 文件中。根据您的操作系统以及如何获得单声道开始,您可能需要从某个地方获取调试符号以获取堆栈跟踪中提到的实际文件。通常它们被称为单核调试信息,但这取决于您的系统。

于 2012-02-03T19:52:38.977 回答