【问题标题】:mono 4.0 xsp4 and mod_mono: method arguments are incompatiblemono 4.0 xsp4 和 mod_mono:方法参数不兼容
【发布时间】:2012-02-01 12:51:26
【问题描述】:

我已经全新安装了带有 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

有人对如何调试此问题或找出实际导致此问题的原因有任何想法吗?如果某处有更详细的日志?

【问题讨论】:

    标签: asp.net mono mod-mono


    【解决方案1】:

    我假设您在以下指定的调试模式下运行:

    ASP Debugging

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

    那就是你执行以下操作:

    MonoSetEnv MonoDebug true
    

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-10
      • 2011-04-28
      相关资源
      最近更新 更多