title: MVC View: Type arguments Html helper DisplayFor cannot be inferred from the usage
body: <p>I'm trying to make use of the extended HTML Helper DisplayFor in this View:</p>
  
  <pre><code>&lt;%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage&lt;MvcCms.Web.ViewModels.SubscriptionsViewModel&gt;" %&gt;
  
  &lt;% using (Html.BeginForm("TrainingSubscription", "Account", FormMethod.Post))
      { %&gt;
   &lt;%: Html.DisplayFor(m =&gt; m.Subscriptions) %&gt;
   &lt;input type="submit" value="Save" /&gt;
   &lt;% } %&gt;
  </code></pre>
  
  <p>with the following ViewModel</p>
  
  <pre><code>namespace MvcCms.Web.ViewModels
  {
      public class SubscriptionsViewModel
      {
          public string TrainingId { get; set; }
          public string Subject { get; set; }      
          public IEnumerable&lt;SubscriptionViewModel&gt; Subscriptions { get; set; }
  
          public SubscriptionsViewModel(string TrainingId, string Subject, IEnumerable&lt;SubscriptionViewModel&gt; Subscriptions)
          {
              this.TrainingId = TrainingId;
              this.Subject = Subject;
              this.Subscriptions = Subscriptions;
          }
      }
  
      public class SubscriptionViewModel
      {
          public string ContactId { get; set; }
          public string FullName { get; set; }
          public bool Subscribed { get; set; }
  
          public SubscriptionViewModel(string ContactId, string FullName, bool Subscribed)
          {
              this.ContactId = ContactId;
              this.FullName = FullName;
              this.Subscribed = Subscribed;
          }
      }
  }
  </code></pre>
  
  <p>It's giving me this error</p>
  
  <blockquote>
    <p>The type arguments for method
        'System.Web.Mvc.Html.DisplayExtensions.DisplayFor(System.Web.Mvc.HtmlHelper, System.Linq.Expressions.Expression>)' 
        cannot be inferred from the usage. Try specifying the type arguments explicitly</p>
  </blockquote>
  
  <p>I can't figure what's wrong. Note that I'm able to access the Model in a strongly typed manner with IntelliSense popping up in the view. However, IntelliSense is not popping up when I'm typing the lambda-expression.</p>