title: @Html.ValidationMessageFor crashes when I try to edit an item
body: <p>Why is my <code>@Html.ValidationMessageFo</code> not working? When I run the application, nothing happens and it allows everything to be entered. And it also crashes when I try to edit an item in my edit view, which is below. I have the following:</p>
  <pre><code>&lt;div class=&quot;editor-label&quot;&gt;
         @* @Html.LabelFor(model =&gt; model.Posted)*@
      &lt;/div&gt;
      &lt;div class=&quot;editor-field&quot;&gt;
          @Html.HiddenFor(model =&gt; model.Posted, Model.Posted = DateTime.Now)
          @Html.ValidationMessageFor(model =&gt; model.sendinghome)
      &lt;/div&gt;
  
      &lt;div class=&quot;editor-label&quot;&gt;
          @Html.LabelFor(model =&gt; model.Cartypes)
      &lt;/div&gt;
      &lt;div class=&quot;editor-field&quot;&gt;
          @Html.EditorFor(model =&gt; model.Cartypes)
          @Html.ValidationMessageFor(model =&gt; model.Cartypes)
      &lt;/div&gt;
  
      &lt;div class=&quot;editor-label&quot;&gt;
          @Html.LabelFor(model =&gt; model.RegNum)
      &lt;/div&gt;
      &lt;div class=&quot;editor-field&quot;&gt;
          @Html.EditorFor(model =&gt; model.RegNum)
          @Html.ValidationMessageFor(model =&gt; model.RegNum)
      &lt;/div&gt;
  
      &lt;div class=&quot;editor-label&quot;&gt;
          @Html.LabelFor(model =&gt; model.Regprice)
      &lt;/div&gt;
      &lt;div class=&quot;editor-field&quot;&gt;
          @Html.EditorFor(model =&gt; model.Image)
          @Html.ValidationMessageFor(model =&gt; model.Regprice)
      &lt;/div&gt;
  </code></pre>