ASP.NET MVC 1.0 + Mono 2.4

hb.*_*hb. 9 c# asp.net-mvc mono

试图让MVC在Mono 2.4上运行(根据这里的一些线程,这是可能的)没有太多运气.我无法理解:

Compilation Error

Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error.

Compiler Error Message: : ** (/usr/local/lib/mono/2.0/gmcs.exe:5232): WARNING **: The class System.Web.Management.WebRequestErrorEvent could not be loaded, used in System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
~/Global.asax

Show Detailed Compiler Output: //etc
Run Code Online (Sandbox Code Playgroud)

我已经将System.Web.dll(以及项目中的每个引用)添加到bin文件夹中 - 仍然没有去.

有任何想法吗?

链接:

Miguel de Icaza说这是可能的:Twitter SO 1 SO 2

小智 6

你不需要编译MVC(或Mono),但你需要Mono 2.4,它可以在Mono下载站点上找到.

您需要的唯一DLL是System.Web.Mvc.dll.在VS中处理此问题的最简单方法是将该程序集的"Copy Local"设置为true.不要复制本地任何其他System.*引用.