title: MVC4 validation not working after IIS deployment, but in Visual studio server its working fine
body: <p>I am working  on a MVC4 application, here everything is working fine on Visual studio server like "client side" validation messages.</p>
  
  <p><img src="https://i.stack.imgur.com/G6hkk.png" alt="Client side validation in visual studio server"></p>
  
  <p>But when I publish this project and deploy in IIS its not working at all, confused with solution. Is there any code needed to add or IIS configuration issue? ere is UI block code, I am using Jquery-1.9.1, please help me out. Might I be missing IIS configurations, if any?</p>
  
  <pre><code>             @Html.LabelFor(model =&gt; model.Zip)
           &lt;span style="float:right;"&gt;@Html.EditorFor(model =&gt; model.Zip)&lt;/span&gt;&lt;br&gt;
           &lt;span style="float:right;"&gt;@Html.ValidationMessageFor(model =&gt; model.Zip)&lt;/span&gt;&lt;br&gt;
  </code></pre>
  
  <p>in Model :</p>
  
  <pre><code>[DisplayName("Zip")]
          [StringLength(5, ErrorMessage = "Length can't be more than 5.")]
          [RegularExpression("([0-9]{5})", ErrorMessage = "Enter valid 5 digit numeric values")]
          public string Zip { get; set; }
  </code></pre>