title: Validation error message not displaying MVC4
body: <p>I am using MVC4.</p>
  
  <p>Validation is failing but validation error messages are not getting displayed.</p>
  
  <p>This is my model.</p>
  
  <pre><code>public class Configuration
  {
      public int Id { get; set; }
  
      [Required(AllowEmptyStrings = false, ErrorMessage = "Site name is required.")]
      [MinLength(6, ErrorMessage = "Name should be at least 6 characters.")]
      public string SiteName { get; set; }
  }
  </code></pre>
  
  <p>Controller.</p>
  
  <pre><code>[HttpPost]
      public ActionResult Create(Configuration configItem)
      {
          if (ModelState.IsValid)
          {
              // do something.
          }
          return View("Index", configItem);
      }
  </code></pre>
  
  <p>View is</p>
  
  <pre><code>@model Models.SitesConfig.Configuration
  @{
  ViewBag.Title = "Sites Configurations";
  }
  &lt;div&gt;
      @Html.ActionLink("Sites List", "List", "SiteConfig")
  &lt;/div&gt;
  @using (Html.BeginForm("Create", "SiteConfig", FormMethod.Post, new { enctype = "multipart/form-data" }))
  {
      &lt;fieldset&gt;
          &lt;legend&gt;New Satellitesite&lt;/legend&gt;
          &lt;div&gt;
              @Html.LabelFor(m =&gt; m.SiteName, "Name")
              @Html.TextBoxFor(m =&gt; m.SiteName)
              @Html.ValidationMessageFor(m=&gt;m.SiteName)
          &lt;/div&gt;
          &lt;br /&gt;
  
          &lt;input type="submit" value="Save" /&gt;
  
      &lt;/fieldset&gt;
  }
  </code></pre>
  
  <p>Please also suggest me if there is any better way of doing the validations.</p>