Print Page | Close Window

Using Server Side include from site root

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=447
Printed Date: 08-July-2024 at 12:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Using Server Side include from site root
Posted By: dcunningham
Subject: Using Server Side include from site root
Date Posted: 09-September-2006 at 11:46am

Hello,

I'm getting the following error in the footer of all my cart pages:

Active Server Pages error 'ASP 0140'

Page Command Out Of Order

[snip]..\STORE\PC\../../rss.asp, line 1

The @ command must be the first command within the Active Server Page.

The file rss.asp sits in the site root. Here's the first couple lines of code from that file:< mailto:%'@LANGUAGE="VBSCRIPT - %'@LANGUAGE="VBSCRIPT " CODEPAGE="1252"%>
<!--#include file="../../includes/MXRSS/MX_Rss.inc.asp" -->
<!--#include file="../../Connections/connSunSoft.asp" -->
<%
Dim MXRSS_rsRSS: Set MXRSS_rsRSS = new MX_RssReader
MXRSS_rsRSS.setConnection MM_connSunSoft_STRING
MXRSS_rsRSS.setCacheTime 60
MXRSS_rsRSS.getFeed " http://www.adobe.com/go/rss_dreamweaver/index.rdf - http://www.adobe.com/go/rss_dreamweaver/index.rdf "

As you can see the first line contains the @command. I'm sure that since the SSI is being called from the footer file that the @command must already exist because of the PC pages being processed inside the header. However, I can't tell from the error message if the @command has been recognized by the ASP parser in IIS from processing all the header files ect..

This is the code to bring in the file: <!--#include file="../../rss.asp"-->  I've tried commenting out the @ command but still get the error.

The file to be included runs from the site root because it was having path problems from a temp cache file buried deep inside the rss components folder structure. The rss reader works just fine from the root, so I'm trying to to pull it into the footer.

Any help would be appreciated.




Print Page | Close Window

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