3

我用 MonoDevelop 构建了一个简单的 ASP.NET MVC 2 项目,它在 MonoDevelop 的调试服务器上运行就可以了。

然后我在http://go-mono.com/config-mod-mono/Default.aspx生成虚拟主机 conf 文件并尝试在 apache 上运行,它抛出异常:

System.MissingMethodException:找不到方法:'MyProject.MvcApplication.RegisterRoutes'

我应该如何解决这个问题?(单声道版本:2.10.8,apache 版本:2.2.23,mod_mono 版本:2.10)

4

1 回答 1

1

You are using mod-mono-server2 which is for asp.net 2.0, but you need support for asp.net 4.0

Change your host conf file to use mod-mono-server4

I also needed to install it which on ubuntu required the following command.

sudo apt-get install mono-apache-server4
于 2012-12-19T10:37:10.047 回答