Ambiguous call between methods ASP.NET MVC
Posted
by GuiPereira
on Stack Overflow
See other posts from Stack Overflow
or by GuiPereira
Published on 2010-04-24T23:29:11Z
Indexed on
2010/04/24
23:33 UTC
Read the original article
Hit count: 626
I'm pretty new in ASP.NET MVC (about 3 months) and i've the followin issue:
I have a Entity Class called 'Usuario' in a ClassLibrary referenced as 'Core' and, when i create a strongly-typed view and add a html.textboxfor<> like:
<%= Html.TextBoxFor(u => u.Login) %>
it raises the following error:
Error 3 The call is ambiguous between the following methods or properties:
'Microsoft.Web.Mvc.ExpressionInputExtensions.TextBoxFor<Core.Usuario,string>(System.Web.Mvc
.HtmlHelper<Core.Usuario>,
System.Linq.Expressions.Expression<System.Func<Core.Usuario,string>>)' and
'System.Web.Mvc.Html.InputExtensions.TextBoxFor<Core.Usuario,string>(System.Web.Mvc.HtmlHel
per<Core.Usuario>, System.Linq.Expressions.Expression<System.Func<Core.Usuario,string>>)'
d:\Documents\Visual Studio
2008\Projects\GuiPereiraMVC2\GuiPereiraMVC2\Views\Gestao\Index.aspx 20 25
GuiPereiraMVC2
anyone knows why?
© Stack Overflow or respective owner