[Mono-aspnet-list] Running MVC2 application with mod_mono 2.4+

Nathan Bridgewater nathan at integratedwebsystems.com
Fri Jan 7 11:25:46 EST 2011


Hi Andrus,

I'm not sure MVC2 works with 2.4. Take a look at the mono-project's apache
config generator. It basically sets up a <location> block and sets Mono to
handle all requests to the app. This will allow the request routing to work
for MVC.

The other thing you'll need to do is set your System.Web.Mvc and
System.Web.Routing references to "copy local" in visual studio. The don't
need to be in the GAC if they're in the bin folder.

I wrote a blog post on Mono 2.8 and MVC 2 setup. Take a look at this and
skip past the Mono installation section to the Apache configuration and
forward. It walks through setting this up..  You may need to upgrade to Mono
2.6.7 or 2.8 though to make this work.

http://www.integratedwebsystems.com/2010/11/setting-up-mono-2-8-with-asp-net-4-0-and-mvc2-on-ubuntu-with-mysql-membership/

Good luck.
-Nathan

On Thu, Nov 25, 2010 at 1:48 AM, Andrus <kobruleht2 at hot.ee> wrote:

> I'm trying to run musicstore MVC  2 sample (
> http://mvcmusicstore.codeplex.com/ ) in Mono 2.4 and 2.6 .
> I backported it to .NET 3.5 and replaced EF calls with dblinq and ADO .NET
>
> MVC2 application generates urls like
>
> http://store.mysite.com/Store/Browse?type=xxxx
>
> How to force Apache to pass those requests to Mono ?
>
> How to run it in Mono 2.4/2.6 where mvc dll is not present ? Where to find
> required dlls which I should put in application bin directory so that mvc
> application will run ?
>
> Andrus.
>
> _______________________________________________
> Mono-aspnet-list mailing list
> Mono-aspnet-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110107/c76a838f/attachment.html 


More information about the Mono-aspnet-list mailing list