ASP.NET mvc on mono 2.2

前端 未结 4 1349
春和景丽
春和景丽 2020-12-17 02:42

I am having a trouble. I am trying to run asp.net mvc 1.0 on mono 2.2.I have copied the system.web.mvc.dll to bin directory. I have done HttpContext.Current.RewritePath(\"/H

相关标签:
4条回答
  • 2020-12-17 03:31

    Well, I didn't change anything in my global.asax file. Using .net it runs perfectly. This error happens in case I use mono.

    0 讨论(0)
  • 2020-12-17 03:35

    As has been mentioned in another question, it will work with 2.4. I'm very much of the belief that it will not work with anything else than that, although 2.2 does have coverage of the routing in .NET 3.5 SP1...

    0 讨论(0)
  • 2020-12-17 03:37

    Here is a "is it plugged in" question - did you move over your Global.asax file? The #1 cause for the error you are seeing is a missing Global.asax as that file contains all your routes.

    0 讨论(0)
  • 2020-12-17 03:44

    I have finally managed to get it running. It seems that ASP.NET 3.5 MVC applications work just fine unmodified with the latest mono from svn(they do NOT on mono 2.2). Detailed instructions for compiling it are here: http://www.mono-project.com/Compiling_Mono_From_SVN

    Obviously, you need to copy the System.Web.Mvc.dll to the bin/ subdirectory of your application.

    In case anyone needs Mono and xsp on 32bit Linux, here is my build: http://www.speedyshare.com/283727620.html

    UPDATE: The 2.4 release is out, go get it!

    Another UPDATE: 2.6.1 is the latest release as of 3/15/2010

    0 讨论(0)
提交回复
热议问题