Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC 1.0 + Mono 2.4

Trying to get MVC running on Mono 2.4 (which is possible, according to some threads here) without much luck. I can't get past this:

Compilation Error

Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error.

Compiler Error Message: : ** (/usr/local/lib/mono/2.0/gmcs.exe:5232): WARNING **: The class System.Web.Management.WebRequestErrorEvent could not be loaded, used in System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
~/Global.asax

Show Detailed Compiler Output: //etc

I've added System.Web.dll (and literally every reference in the project) to the bin folder - still no go.

Any ideas?

LINKS:

Miguel de Icaza saying it's possible: Twitter SO 1 SO 2

like image 978
hb. Avatar asked Mar 26 '09 17:03

hb.


1 Answers

You shouldn't need to compile MVC (or Mono), but you will need at Mono 2.4, which is available on the Mono download site.

The only DLL you need is the System.Web.Mvc.dll. The easiest way to handle this in VS would be to set "Copy Local" to true for that assembly. Don't copy local any of the other System.* references.

like image 153
Joseph Hill Avatar answered Oct 05 '22 22:10

Joseph Hill