"Anthony Jones" wrote:
"Jonathan Attree" <Jo************@discussions.microsoft.comwrote in
message news:EC**********************************@microsof t.com...
Hi
I have just taken over management of a web site, many pages of which
contain
the line:
<!--#include virtual="/admin/Includes/conn_Login.asp" -->
When I try to load this page (login.asp) I get the error:
Page cannot be displayed
Active Server Pages, ASP 0126 (0x80004005)
The include file '/admin/Includes/conn_Login.asp' was not found.
/CECO/admin/Home/login.asp, line 10
I realise that I have to create a virtual directory but am not sure how to
do this.
Full path to file is:
C:\Inetpub\wwwroot\CECO\admin\Home\login.asp
Have actually got a copy of the physical files found in the /admin folder
somewhere on you local machine or available on a network file share
--
Anthony Jones - MVP ASP/ASP.NET
Thanks again.
Yes there is a a copy of the physical files in
C:\Inetpub\wwwroot\CECO\admin
The file(s) that the #include command is called from are in:
C:\Inetpub\wwwroot\CECO\Home
so I need to go up one directory and down to 'admin'. I can make it work by
changing the command to
<!--#include file="../admin/Includes/conn_Login.asp" -->
on my local machine but the shared host doesn't allow the '../'.
What would likely work is for you to
change your site settings so that C:\Inetpub\wwwroot\CECO is the path to the
root of the site.
C:\Inetpub\wwwroot\CECO\index.asp is the site home page so is
C:\Inetpub\wwwroot\CECO not the root path of the site?
All I'm trying to do is avoid having to change these commands every time I
need to edit a page ( and then forgetting to change them back again!)
Jonathan Attree