[thelist] .asp include page not previewing

Ross DeMeyere ross at demeyere.com
Thu Jan 20 13:47:54 CST 2005


On 20 Jan 2005, at 13:20, Bruce Gilbert wrote:

> within DWMX I am trying to use a server side include with .asp. I have
> my footer code as footer.asp and that file resides within my site
> directory in a folder called SSI.
>
> in my page I am calling my footer as such: <!--#include
> virtual="../SSI/footer.asp"-->
>
> I am getting this when previewing locally:
>
> Error Type:
> Active Server Pages, ASP 0126 (0x80004005)
> The include file '../SSI/footer.asp' was not found.
> /new site testing/Parents/Testing.asp, line 123

Try referencing the page using an absolute path in the include

<!--#include virtual="/SSI/footer.asp"-->

It may be looking for the file at 
/newsitetesting/Parents/SSI/footer.asp. It will also eliminate the need 
to change the include file based on where the calling page is located 
in your site.

------------------------------------------------------------
Ross DeMeyere
DeMeyere Design Incorporated
http://demeyere.com/
------------------------------------------------------------
rossMania
a photo journal - the other side of DeMeyere Design
http://rossMania.com/
------------------------------------------------------------





More information about the thelist mailing list