ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Using ProductCart
  New Posts New Posts RSS Feed - Using Server Side include from site root
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Using Server Side include from site root

 Post Reply Post Reply
Author
Message
dcunningham View Drop Down
Newbie
Newbie
Avatar

Joined: 08-July-2006
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote dcunningham Quote  Post ReplyReply Direct Link To This Post Topic: Using Server Side include from site root
    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:<%'@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"

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.



Edited by dcunningham - 09-September-2006 at 11:52am
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.