[Mono-list] Running ASP.Net 4.5 MVC Application on Mono
Martin Thwaites
monoforum at my2cents.co.uk
Thu Sep 18 06:48:37 UTC 2014
The namesakes for views are imported from the Web.config in the views
directory, that could be your issue there.
Glad you got it working.
Martin
On 18 Sep 2014 05:18, "Fernando Rodriguez" <frodriguez.developer at outlook.com>
wrote:
> 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
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20140918/04dfcee1/attachment.html>
More information about the Mono-list
mailing list