title: How to resolve "ERROR for site owner: Invalid site key" in MVC?
body: <p>I want to implement google recaptcha into my application but it is throwing the error. I do not know what I have done wrong. </p>
  
  <p>I have installed nuget package of <code>GoogleRecaptcha</code> and then got the <code>site key</code> which is basically a public key and <code>private key</code>. I then included <code>&lt;script src='https://www.google.com/recaptcha/api.js'&gt;&lt;/script&gt;</code> in <code>&lt;head&gt;</code> section and <code>&lt;div class="g-recaptcha" data-sitekey="xxxxxxxxxxxx"&gt;&lt;/div&gt;</code> into form. In <code>web.config</code>, I have added the keys. I tried different keys but still not working.</p>
  
  <blockquote>
    <p>ERROR for site owner: Invalid site key</p>
  </blockquote>
  
  <pre><code>@using reCAPTCHA.MVC
  
  
  &lt;html&gt;
  &lt;head&gt;
      &lt;script src='https://www.google.com/recaptcha/api.js'&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form&gt;
          @using (Html.BeginForm())
          {
              @Html.Recaptcha()
              @Html.ValidationMessage("ReCaptcha")
              &lt;input type="submit" value="Register" /&gt;
              &lt;div class="g-recaptcha" data-sitekey="6LeYD1wUAAAAAIzGhgDrIoI_OD7PUzwTJIQdpqGs"&gt;&lt;/div&gt;
          }
  
      &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>