[Mono-list] Running ASP.Net 4.5 MVC Application on Mono

Fernando Rodriguez frodriguez.developer at outlook.com
Thu Sep 18 04:17:36 UTC 2014


On Wednesday 17 September 2014 10:25:47 PM Martin Thwaites wrote:
> Have you tried the MVC3 boilerplate solution, even just the one that is
> generated from Visual Studio?

I got it. I've tried so many things I'm not exactly sure which of them make a 
difference but I think:

1. Build against mono's System.Web.Mvc v3.0.0.0. If I build it on Windows the 
redirect thing on Web.config doesn't seem to work.

2. Do not reference System.Web.WebPages.* but do copy then to the bin 
directory after building. Apparently they're only needed a runtime to compile 
the views. If I reference them it throws an exception on startup.

3. Make sure every reference to System.Web.Mvc on web.config is to version 
3.0.0.0 and WebPages to version 2.0.0.0 and add the assemblyBinding redirect 
thing for all of them. I actually got merged versions of the Web.Configs for 
this and the MVC3 solution, I'll clean them up tomorrow.

The namespaces defined on Web.config are not being imported into the Views, 
either that or some of the bundled packages are getting loaded but I'll figure 
that out tomorrow.

Thanks for the help.

----------
Fernando Rodriguez
frodriguez.developer at outlook.com


More information about the Mono-list mailing list