[Mono-aspnet-list] MVC2 - Html.EditorFor issues
corpse
terryryangill at gmail.com
Tue Apr 5 14:15:17 EDT 2011
Hi All,
I am unable to render a view with any of the Html extension methods e.g.
EditorFor / TextBoxFor etc..
I have ensured I am using system.web.mvc version 2 in both the web.configs
and ensured that the system.web.mvc is registered as an add namespace in the
main web.config.
I am running MONO on OSX (don't know if that makes any difference)
Below is the output from the page
Compilation Error
Description: Error compiling a resource required to service this request.
Review your source file and modify it to fix this error.
Compiler Error Message: CS1061: Type `System.Web.Mvc.HtmlHelper' does not
contain a definition for `EditorFor' and no extension method `EditorFor' of
type `System.Web.Mvc.HtmlHelper' could be found (are you missing a using
directive or an assembly reference?)
Source Error:
Line 11: <%= Html.EditorFor(m=>m.CompanyName)%>
Please help...
Thanks in advance.
Corpse.
--
View this message in context: http://mono.1490590.n4.nabble.com/MVC2-Html-EditorFor-issues-tp3428777p3428777.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
More information about the Mono-aspnet-list
mailing list