ASP.NET MVC 3单 - MVC应用程序与的WebForms [英] ASP.NET MVC 3 on Mono - MVC app versus WebForms

查看:133
本文介绍了ASP.NET MVC 3单 - MVC应用程序与的WebForms的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装并且设置Apache下运行。我能到的Index.aspx页面,一个web.config中添加到根目录下,并得到这个工作。现在部署一个MVC 3应用程序的根目录,默认/请求拉回通用Apache 2的测试页。

I got Mono installed and set up running underneath Apache. I was able to add in a index.aspx page and a web.config into the root directory and get this to work. Now deploying a MVC 3 app to the root directory, a default / request pulls back the generic Apache 2 Test Page.

你有什么需要做,使MVC应用程序?具体来说MVC 3?

What do you need to do to enable MVC apps? Specifically MVC 3?

推荐答案

看看的的部分ASP.NET MVC3支持为单声道2.10 THR发行说明。

Take a look at the section "ASP.NET MVC3 Support" in thr release notes for Mono 2.10.

显然,你需要从MVC 3部分组件复制到您的目录,并删除一个。结果
从链接引用:

Apparently you need to copy some assemblies from MVC 3 into your bin directory and delete one.
Quote from the link:

运行剃须刀,MVC3和网页

要得到这个栈的运行,你将需要复制微软的MVC3
  库到您的bin目录:

To get this stack running, you will need to copy Microsoft's MVC3 libraries into your bin directory:


      
  • System.Web.Mvc.dll程序

  •   
  • System.Web.Razor.dll

  •   
  • System.Web.WebPages.Deployment.dll

  •   
  • System.Web.WebPages.dll

  •   
  • System.Web.WebPages.Razor.dll

  •   

这是非常
  重要的是你从删除Microsoft.Web.Infrastructure.dll
  对于上面的bin目录工作。

It is very important that you remove the Microsoft.Web.Infrastructure.dll from the bin directory for the above to work.

这篇关于ASP.NET MVC 3单 - MVC应用程序与的WebForms的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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