Mono上的ASP.NET MVC Preview 5

Mic*_*lGG 10 asp.net-mvc mono

有没有人有任何关于获得当前版本的ASP.NET MVC(预览5)在Mono 2.0上工作的信息?有旧版本的信息(预览2,也许预览3),但我没有看到有关使预览5实际工作的细节.

Mono项目的路线图显示ASP.NET 3.5(明年)单声道2.4.有关如何在此之前获得此功能的任何想法?

更多细节:基本的MVC Preview 5模板似乎可以工作,只要我避开根目录.如果我请求root,我得到:

Server Error in '/' Application
The virtual path '' maps to another application.

Description: HTTP 500. Error processing request.

Stack Trace:

System.Web.HttpException: The virtual path '' maps to another application.
  at System.Web.HttpContext.RewritePath (System.String filePath, System.String pathInfo, System.String queryString, Boolean setClientFilePath) [0x00000] 
  at System.Web.HttpContext.RewritePath (System.String path, Boolean rebaseClientPath) [0x00000] 
  at System.Web.HttpContext.RewritePath (System.String path) [0x00000] 
  at MvcApplication1._Default.Page_Load (System.Object sender, System.EventArgs e) [0x00000] 
  at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x00000] 
  at System.Web.UI.Control.LoadRecursive () [0x00000] 
  at System.Web.UI.Page.ProcessLoad () [0x00000] 
  at System.Web.UI.Page.ProcessPostData () [0x00000] 
  at System.Web.UI.Page.InternalProcessRequest () [0x00000] 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000] 

Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42
Run Code Online (Sandbox Code Playgroud)

Mic*_*lGG 11

一个潜在的可能是RewritePath /有某种bug,所以只是避免这种情况.将RewritePath(Request.ApplicationPath)更改为:

HttpContext.Current.RewritePath("/Home/Index");
Run Code Online (Sandbox Code Playgroud)

似乎解决了这个问题,至少到目前为止演示工作.