I am running ASP.NET MVC 3 and I am viewing the Edit view for my model. I have a property FullNamethat I want to display as "Full name".
Here is the line (s) of the violation:
<div class="display-label">
<%: Html.LabelFor(model => model.FullName, "Full name") %>
</div>
Now intellisense shows that there is overload - there are two signatures, the first of which accepts only the expression, and the second accepts both the expression and the string to be displayed. However, when I browse the page, I get the entitled exception ("no overload ...").
Does anyone succeed using this overload and any tips on what I might lose?
Update: I tried reinstalling MVC3 to no avail. However, I noticed this in the compiler output on the error page:
c:\Windows\assembly\GAC_MSIL\System.Web.Mvc\2.0.0.0__31bf3856ad364e35\
System.Web.Mvc.dll: (Location of symbol related to previous error)
, MVC 2, MVC 3.
IIS MVC 2, MVC 3? ?