title: Why is ValidationSummary(true) displaying an empty summary for property errors?
body: <p>I am having a slight issue with the use of <code>ValidationSummary(true)</code> to display model level errors.  If the ModelState does not contain model errors (i.e. <code>ModelState.AddModelError("", "Error Description")</code>) but contains property errors (added using data annotations) it displays the validation summary with no error information (when you view the source).  My css is therefore displaying an empty red box like so:</p>
  
  <p><img src="https://i.stack.imgur.com/Cyoy8.png" alt="enter image description here"></p>
  
  <p>If there are no property errors then no validation summary is displayed.  With <code>ValidationSummary(true)</code> I would expect it to only display validation errors if there are model errors.  What have I misunderstood?</p>
  
  <p>I have a basic project as follows:</p>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>public class HomeController : Controller
  {
      public ViewResult Index()
      {
          return View();
      }
  
      [HttpPost]
      public ActionResult Index(IndexViewModel model)
      {
          return View();
      }
  }
  </code></pre>
  
  <p><strong>Model:</strong></p>
  
  <pre><code>public class IndexViewModel
  {
      [Required]
      public string Name { get; set; }
  }
  </code></pre>
  
  <p><strong>View:</strong></p>
  
  <pre><code>@model IndexViewModel
  
  @Html.ValidationSummary(true)
  
  @using(@Html.BeginForm())
  {
      @Html.TextBoxFor(m =&gt; m.Name)
      &lt;input type="submit" value="submit" /&gt;
  }
  </code></pre>