View Single Post
  #1 (permalink)  
Old February 22nd, 2012, 06:53 AM
fullingdale fullingdale is offline
Authorized User
Points: 169, Level: 3
Points: 169, Level: 3 Points: 169, Level: 3 Points: 169, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2008
Location: Northampton, , United Kingdom.
Posts: 35
Thanks: 1
Thanked 0 Times in 0 Posts
Default Arguments cannot be inferred from usage?

In code, I have the following line:

Html.EditorFor(model => model.COLUMN_NAME)

Which is throwing the following in my Errors List

The type arguments for method 'System.Web.Mvc.Html.EditorExtensions.EditorFor<TM odel,TValue>(System.Web.Mvc.HtmlHelper<TModel>, System.Linq.Expressions.Expression<System.Func<TMo del,TValue>>)' cannot be inferred from the usage. Try specifying the type arguments explicitly

Any ideas why this would appear?

Seems to be fairly recent and I am not sure what's caused it, but it's on every one of the HTML. objects
__________________
Regards,

Sean
Reply With Quote