I'm trying to implement reCAPTCHA on one of the pages of our website
(I don't have a page to show you as I'm creating it in our test
environment, and it's currently not displayable since reCAPTCHA is
giving me an error).
I've tried using the files from the recaptcha-dotnet-1.0.1.0-
binary.zip file, placing them in my bin folder, as well as bin/
Recaptcha. I've also tried using an older version of the files (from
recaptcha-dotnet.zip), as I thought maybe I'd have more luck with an
older version being compatible with ASP.Net 1.1.4322.2407. The files I
copied over were Recaptcha.dll and Recaptcha.pdb.
I'm getting the following error, regardless of the files I use:
Parser Error
Description: An error occurred during the parsing of a resource
required to service this request. Please review the following specific
parse error details and modify your source file appropriately.
Parser Error Message: The format of the file 'Recaptcha' is invalid.
Source Error:
Line 1: <%@ Page Language="VB" ContentType="text/html"
ResponseEncoding="iso-8859-1" %>
Line 2: <%@ Register TagPrefix="recaptcha" Namespace="Recaptcha"
Assembly="Recaptcha" %>
Line 3: <script runat=server>
Line 4: Sub btnSubmit_Click(ByVal sender As Object, ByVal e As
EventArgs)
Source File: C:\Inetpub\wwwroot\recaptchatest.aspx Line: 2
Assembly Load Trace: The following information can be helpful to
determine why the assembly 'Recaptcha' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = Recaptcha
(Partial)
LOG: Appbase = file:///C:/Inetpub/wwwroot/
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Post-policy reference: Recaptcha
LOG: Attempting download of new URL file:///c:/windows/
microsoft.net/framework/v1.1.4322/Temporary
ASP.NET Files/root/79c7a1e4/26c908b5/Recaptcha.DLL.
LOG: Attempting download of new URL file:///c:/windows/
microsoft.net/framework/v1.1.4322/Temporary
ASP.NET Files/root/79c7a1e4/26c908b5/Recaptcha/Recaptcha.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/bin/Recaptcha.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/bin/Recaptcha/Recaptcha.DLL.
-----
I don't have the option of using ASP.Net 2.0. Anyone know how to get
this to work with 1.1?
I've never used the "Register" command before, so I tried changing
line 2 to <@Import Namespace="Recaptcha"%> and it didn't error out on
that, but it errored out when it got to the following:
Parser Error Message: Unknown server tag 'recaptcha:RecaptchaControl'.
Source Error:
Line 152: <asp:Label Visible=false
ID="lblResult" runat="server" />
Line 153:
Line 154: <recaptcha:RecaptchaControl
Line 155: ID="recaptcha"
Line 156: runat="server"
Source File: C:\Inetpub\wwwroot\recaptchatest.aspx Line: 154
Thanks for your help!
PS. Indexing is disabled, but it doesn't seem to be a permissions/
locking issue anyways.