是否有可能得到一个ASP.NET MVC 3项目单2.10下工作? [英] Is it possible to get an ASP.NET MVC 3 project working under Mono 2.10?

查看:153
本文介绍了是否有可能得到一个ASP.NET MVC 3项目单2.10下工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

2.10单的发行说明建议为ASP.NET MVC 3.0和支持剃刀使用 XSP

Mono 2.10's release notes suggest support for ASP.NET MVC 3.0 and Razor using XSP.

在打开一个新创建的ASP.NET MVC 3.0默认项目的MonoDevelop 2.4.2(Mac OS X中),下列DLL缺少(使用Visual Studio 2010创建的):

Upon opening a newly created ASP.NET MVC 3.0 default project (created with Visual Studio 2010) in MonoDevelop 2.4.2 (Mac OS X), the following DLLs are missing:

System.Web.Entity
System.Web.Helpers
System.Web.Mvc
System.Web.WebPages

其中全部取代我从我的Windows安装获得的DLL。该项目建立的,但我收到尝试调试项目时出现以下错误信息:

All of which I replace with DLLs obtained from my Windows installation. The project builds, but I receive the following error message when trying to debug the project:

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服务器。

Prior to making these replacements, the application runs but obviously with missing reference errors. Which would suggest that something in the new DLLs is screwing up the XSP server.

我是什么做错了吗?我是不是太简单了?我是新来的单声道和 MonoDevelop的,但我能够成功创建,构建和调试MVC 2.0项目,我目前的安装的MonoDevelop的。

What am I doing wrong? Am I being too simplistic? I'm new to Mono and MonoDevelop, but I am successfully able to create, build and debug MVC 2.0 projects with my current installation of MonoDevelop.

推荐答案

我心花怒放。单声道,2.10.1的新版,与ASP.NET MVC 3.0修复的问题。它运行顺利。

I'm elated. The new version of Mono, 2.10.1, fixed the issues with ASP.NET MVC 3.0. It is running without a hitch.

这篇关于是否有可能得到一个ASP.NET MVC 3项目单2.10下工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆