Print Page | Close Window

Active Server Pages error 'ASP 0140'

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz CAPTCHA
Forum Description: Support forum for the Web Wiz CAPTCHA security image.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25817
Printed Date: 28 March 2026 at 4:07am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Active Server Pages error 'ASP 0140'
Posted By: ArtistDan
Subject: Active Server Pages error 'ASP 0140'
Date Posted: 12 June 2008 at 4:17pm
I just found out about Web Wiz and I've followed the sample directions to test it out on a client's form. But I'm getting an error when placing the code:
<!-- Include file for CAPTCHA configuration -->
<!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->

<!-- Include file for CAPTCHA form processing -->
<!-- #include file="CAPTCHA/CAPTCHA_process_form.asp" -->
at top of the processing web page, which is a ASP that needs to start with:
<%@ Language = vbscript%>

Your example describes placing the comments above the HTML tag. Since there is no such tag in this case, what is to be done?

I've got other clients I'd like to purchase Web Wiz for, but I'd sure like to make sure I can get it to fully function first. Any assistance will be greatly appreciated.



Replies:
Posted By: WebWiz-Bruce
Date Posted: 12 June 2008 at 4:43pm
You don't catually need the following at the top of your ASP file:-

<%@ Language = vbscript%>

But if you do have this it MUST always be the first thing in the file, so you would instead need to place the CAPTCHA code below this eg:-

<%@ Language = vbscript%>
<!-- Include file for CAPTCHA configuration -->
<!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: ArtistDan
Date Posted: 13 June 2008 at 1:44am
I appreciate the timely reply to my question. Unfortunately your suggestion doesn't work. The opening lines in the processing ASP page are (FormMail v1.3):
<%@ Language = vbscript%>
<%option explicit %>
<%server.scripttimeout = 600 %>

I had tried moving the code below the <%@ Language = vbscript%> before writing here. When the code is placed below:
<%@ Language = vbscript%>
<!-- Include file for CAPTCHA configuration -->
<!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->

I get an error reading:

Microsoft VBScript compilation error '800a0400'
Expected statement
/forms/inspect.asp
, line 7
option explicit
^

Placing the Web Wiz code down another line brings up the Invalid Verification Code page. Placing the code deeper into the processing page lets the form get submitted, but the validation process is skipped of course.I'm hoping there is still hope for getting this fixed.

thanks,
    dc



Posted By: WebWiz-Bruce
Date Posted: 13 June 2008 at 8:27am
You do not need the following lines which can be removed:-

<%@ Language = vbscript%>
<%option explicit %>


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: ArtistDan
Date Posted: 14 June 2008 at 3:21pm
I have deleted the original intro lines of the FormMail code so the processing page (inspect.asp) starts as:
<!-- Include file for CAPTCHA configuration -->
<!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->

<!-- Include file for CAPTCHA form processing -->
<!-- #include file="CAPTCHA/CAPTCHA_process_form.asp" -->

<%
'------------------------------------------- FORMMAIL V1.3 ------------------------------------------

I have followed each of the seemingly simple steps provided at
http://www.webwiz.net/webwizcaptcha/kb/captcha_basic_install.asp

Each time the form (Inspect_form.asp) is submitted, I get the incorrect CAPTCHA code page. I have not done any customization to the CAPTCHA image.

Any more suggestions?

Code at the top of the form page is:
<!-- Include file for CAPTCHA configuration -->
<!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->
<html>

Code within the form reads:
 <p>
<textarea name="Additional Names" cols="32" rows="3" wrap="PHYSICAL"></textarea>
</p>
<p class="style1 style2">For verification purposes and to help prevent bot spams, please enter the code exactly as you see it in the image below <span class="style3">(Cookies must be enabled)</span>:</p>
<!-- include the Web Wiz CAPTCHA form element -->
<!--#include file="CAPTCHA/CAPTCHA_form_inc.asp" -->
<p align="center">
 <input type="submit" name="Submit" value="Submit">

The CAPTCHA folder resides in the same directory as the form.

Any help will be appreciated. I'd really like to use this product. I would prefer to find out I'm overlooking something that will make me feel really stupid rather than start over with another solution.

thanks,
     dc



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net