[Mono-list] mod_mono and ASP.NET MVC website with .NET 4.0 features

Robert Jordan robertj at gmx.net
Fri Jul 30 11:59:31 EDT 2010


On 30.07.2010 17:16, Tomi wrote:
> Hi folks,
>
> I'm trying to run ASP.NET MVC 3.0 web application which requires .NET
> 4.0 features on Apache with mod_mono. When I deploy the basic website
> on server and try to access it through browser I get the compilation
> error (http://lists.ximian.com/pipermail/mono-list/2010-July/045551.html).
> I think the problem is that the mod_mono is trying to compile it with
> gmcs instead of dmcs because when I manually change assemblies from
> version 2.0 to version 4.0 and use dmcs then I get no errors. Now I
> would like to ask if there is a way to force mod_mono to use .NET 4.0
> assemblies along with dmcs when the website is accessed and compiled
> first time.

You can change the runtime version with a mod_mono directive:

MonoServerPath MONO-PREFIX/bin/mono-mono-server4

In your case:

MonoServerPath /usr/local/bin/mono-mono-server4

Robert



More information about the Mono-list mailing list