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.