我已经全新安装了Ubuntu服务器11.10与mono和mod_mono,我正在尝试运行一个asp.net站点(需要.net 4.0),但我得到的只是这个无用的堆栈跟踪:< / p>
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
任何人都有关于如何调试或找出实际导致此问题的想法?如果某处有更详细的日志?
答案 0 :(得分:0)
我假设您正在调试模式下运行,如下所示:
要对Apache mod_mono模块执行相同操作,请在apache配置文件中使用MonoDebug true指令。
即你这样做:
MonoSetEnv MonoDebug true
通常在您的httpd.conf文件中。根据您的操作系统以及如何从单词开始获取单声道,您可能需要从某处获取调试符号以获得stacktrace中提到的实际文件。通常它们被称为mono-core-debuginfo,但它取决于您的系统。