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" <[email protected]> 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 > [email protected] > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list >
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
