有没有人有任何关于获得当前版本的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 …Run Code Online (Sandbox Code Playgroud) 我遇到了麻烦.我试图在单声道2.2上运行asp.net mvc 1.0.我已将system.web.mvc.dll复制到bin目录.我做过HttpContext.Current.RewritePath("/ Home/Index");. 我仍然有错误:
"/"应用程序中的服务器错误传入请求与任何路由都不匹配
描述:HTTP 500.错误处理请求.
堆栈跟踪:
System.Web.HttpException:传入的请求与System.Web.Routing.UrlRoutingHandler.ProcessRequest(System.Web)上的System.Web.Routing.UrlRoutingHandler.ProcessRequest(System.Web.HttpContextBase httpContext)[0x00000]中的任何路由都不匹配. HttpContext httpContext)[0x00000]在MvcApplication4._Default.Page_Load(System.Object sender,System.EventArgs e)的System.Web.Routing.UrlRoutingHandler.System.Web.IHttpHandler.ProcessRequest(System.Web.HttpContext context)[0x00000] System.Web.UI.Page.ProcessLoad()的System.Web.UI.Control.LoadRecursive()[0x00000]处的System.Web.UI.Control.OnLoad(System.EventArgs e)[0x00000]的[0x00000] [ System.Web.UI.Page.ProcessRequest()System.Web.UI.Page.ProcessRequest(System.Web.HttpContext context)中的System.Web.UI.Page.InternalProcessRequest()[0x00000]处的System.Web.UI.Page.ProcessPostData()[0x00000]处的0x00000] [0x00000]
版本信息:单声道版本:2.0.50727.1433; ASP.NET版本:2.0.50727.1433