title: What can be causing Html.ValidateFor() method to produce a compile error?
body: <p>I have view with the following which works:</p>
  
  <pre><code>&lt;%= Html.TextBoxFor(m =&gt; m.FirstName, new { @class = "required_field_light" }) %&gt;
  &lt;%= Html.ValidationMessageFor(m =&gt; m.FirstName) %&gt;
  </code></pre>
  
  <p>However, if I change the ValidationMessageFor() to a ValidateFor() like this:</p>
  
  <pre><code>&lt;%= Html.ValidateFor(m =&gt; m.FirstName) %&gt;
  </code></pre>
  
  <p>I get this compile error:</p>
  
  <pre><code>"The best overloaded method match for 'System.IO.TextWriter.Write(char)' has some invalid arguments"
  "Argument '1': cannot convert from 'void' to 'char'"
  </code></pre>
  
  <p>I assume I am missing something somewhere but I cannot figure out what it is.  Has anyone else encountered this problem and found a solution, or does somebody have an idea how to resolve this?</p>