【发布时间】:2011-06-28 11:58:02
【问题描述】:
Mono 2.10 的发行说明建议使用 XSP 支持 ASP.NET MVC 3.0 和 Razor。
在 MonoDevelop 2.4.2 (Mac OS X) 中打开新创建的 ASP.NET MVC 3.0 默认项目(使用 Visual Studio 2010 创建)时,缺少以下 DLL:
System.Web.Entity
System.Web.Helpers
System.Web.Mvc
System.Web.WebPages
我将所有这些替换为从我的 Windows 安装中获得的 DLL。项目已构建,但在尝试调试项目时收到以下错误消息:
Adding applications '/:.'...
Registering application:
Host: any
Port: any
Virtual path: /
Physical path: /.../Mvc3Test/
Handling exception type TargetInvocationException
Message is Exception has been thrown by the target of an invocation.
IsTerminating is set to True
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
在进行这些替换之前,应用程序运行但显然缺少引用错误。这表明新 DLL 中的某些东西正在搞砸 XSP 服务器。
我做错了什么?我是不是太简单了?我是 Mono 和 MonoDevelop 的新手,但我能够使用当前安装的 MonoDevelop 成功创建、构建和调试 MVC 2.0 项目。
【问题讨论】:
-
另见 [Mono-aspnet-list 档案](lists.ximian.com/pipermail/mono-aspnet-list)。我在那里看到了大量关于ASP.NET MVC 3 的讨论。
标签: asp.net-mvc-3 mono monodevelop xsp