Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 2nd, 2007, 09:03 AM
Authorized User
 
Join Date: Feb 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default Weird Syntax Error

For some reason, I keep getting a syntax error on a new page I created. It's on an include that SEVERAL ((dozens)) of other pages also utilize, thus, I don't understand why it's producing an error on this particular page.

Here's the full error message:
Quote:
quote:Microsoft VBScript compilation error '800a03ea'

Syntax error

/includes/xmlHandler.asp, line 12

Class exportXML
^
And here's the surrounding lines of code for line 12:
Quote:
quote:<%
    '################################################# #######
    '# include file for handling all XML
    '################################################# #######

    '-- set global variables
    Dim oXML
    Dim oRoot
    Dim xI, xJ, xK

    Class exportXML <<<< LINE 12
        dim SQL
        dim xInd
        dim oFS
        dim qFile
        dim oCmd
        dim oStream


Any suggestions?

Thanks.
 
Old May 1st, 2007, 02:53 PM
Registered User
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It looks like this is what happens when you try to conditionally include an ASP page that defines a class.

 
Old May 1st, 2007, 06:35 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

From what you say I dont think your problem is in your include. is the new File which calls this incluse in a seperate dir to the pages which are problem free?

Wind is your friend
Matt
 
Old May 5th, 2007, 04:25 AM
Authorized User
 
Join Date: May 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Try this it may work. Include the file (#Include) at the top of the page. If you are including the file in between some ASP code, this error could occure.


Ragards,
Akash - The Sky





Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird Error Message jeremy1048 Access 2 April 8th, 2008 04:52 AM
VWD Weird Error bmains Visual Studio 2005 1 May 2nd, 2005 09:46 AM
Weird MySQL error cmiller PHP Databases 3 April 6th, 2004 04:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.