title: Google Recaptcha throwing System.Web.HttpRuntime.WebObjectActivator error
body: <p>I am trying to use Google Recaptcha on on my web pages. I keep getting an error saying </p>
  
  <pre><code>GoogleReCaptcha.GoogleReCaptcha)(System.Web.HttpRuntime.WebObjectActivator.GetService(typeof(GoogleReCaptcha.GoogleReCaptcha))));
  </code></pre>
  
  <p>Below is the screen shot:</p>
  
  <p><a href="https://i.stack.imgur.com/bfBR5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bfBR5.png" alt="enter image description here"></a></p>
  
  <p>Below is my aspx page code:</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="TryAgain.WebForm1" %&gt;
  &lt;%@ Register Assembly="GoogleReCaptcha" Namespace="GoogleReCaptcha" TagPrefix="cc1" %&gt;
  &lt;!DOCTYPE html&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
          &lt;div&gt;
               &lt;p&gt;
          &lt;h1&gt;Google ReCaptcha Form&lt;/h1&gt;
          &lt;asp:TextBox ID="txt" runat="server"&gt;&lt;/asp:TextBox&gt;
          &lt;cc1:GoogleReCaptcha ID="ctrlGoogleReCaptcha" runat="server" PublicKey="XXXX" PrivateKey="XXX" /&gt;
          &lt;asp:Panel ID="Panel1" runat="server"&gt;
          &lt;/asp:Panel&gt;
          &lt;asp:Label ID="lblStatus" runat="server" Text=""&gt;&lt;/asp:Label&gt;
          &lt;asp:Button ID="btn" runat="server" Text="Submit" OnClick="btn_Click" /&gt;
      &lt;/p&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Below is my aspx.cs file code:</p>
  
  <pre><code>   protected void btn_Click(object sender, EventArgs e)
          {
              if (ctrlGoogleReCaptcha.Validate())
              {
                  //submit form
                  lblStatus.Text = "Success";
              }
              else
              {
                  lblStatus.Text = "Captcha Failed!! Please try again!!";
              }
          }
  </code></pre>
  
  <p>GoogleRecaptcha that I downloaded has properties like so:</p>
  
  <p><a href="https://i.stack.imgur.com/aSFty.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aSFty.png" alt="enter image description here"></a></p>
  
  <p>I am struggling with this error for hours. Any help will be highly appreciated.</p>