[Mono-aspnet-list] MVC2 - Html.EditorFor issues

mikojas mikojas at gmail.com
Sat Mar 3 13:30:14 UTC 2012


I faced the same problem under Linux Mint + mono. 
Problem was caused by the fact, that no matter which MVC assembly (1.0 or
2.0) do I pick while setting reference to MVC library in MVC web site
project, MonoDevelop was always compiling with MVC library version 1.0
instead of MVC library version 2.0. 

You can easily track it by putting such a code in your index site

	<%  foreach (System.Reflection.Assembly assembly in
            { %>
                <%= assembly.FullName %><br/>
            } %>

The easies way to solve it is to take MVC 2.0 library from 
/usr/lib/mono/gac/System.Web.Mvc/ ( ... (something)), move it to
Yours project directory or other well known directory and in MVC web site
project set reference directly to copied dll. 

View this message in context: http://mono.1490590.n4.nabble.com/MVC2-Html-EditorFor-issues-tp3428777p4441376.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.

More information about the Mono-aspnet-list mailing list