Print Page | Close Window

PWS problem

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=1761
Printed Date: 29 March 2026 at 8:42am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: PWS problem
Posted By: OTG!
Subject: PWS problem
Date Posted: 11 April 2003 at 9:11am

I have PWS set up on my laptop with Windows 98. When trying to run the server, I have a test ASP website which is stored in a folder above the root (wwwroot)

Therefore I have...

file/default.asp
file/header.asp

In the default.asp file I use the include method to put the header.asp into the top of my page. Yet my PWS Server can't find it - it says that "header.asp" is not found. What I suspect is that it is trying to look for the header.asp file in the root directory instead of the "file" directory. I have Directory browsing switched on in the control panel of PWS and it makes no difference.

What can I do to solve this problem? 




Replies:
Posted By: lobo
Date Posted: 11 April 2003 at 9:15am

 

As far as I know you must place everything in wwwroot or subdirectories of wwwroot.

 



Posted By: OTG!
Date Posted: 11 April 2003 at 2:37pm
Originally posted by lobo lobo wrote:

 

As far as I know you must place everything in wwwroot or subdirectories of wwwroot.

 

I've done that - it's in a sub-directory of wwwroot, but it is asking for a file in the root of wwwroot, and not in the subdirectory where it is.



Posted By: michael
Date Posted: 11 April 2003 at 5:03pm

Show the include statement you are using..

 



-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: OTG!
Date Posted: 29 April 2003 at 1:43pm

sorry for leaving this on the back burner for the last couple of weeks, my include statement is as follows...

<!--#include virtual="header.asp"-->

 



Posted By: michael
Date Posted: 29 April 2003 at 2:28pm
Would have to be
<!--#include virtual="file/header.asp"-->
as virtual always goes from the root of your website..


-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: OTG!
Date Posted: 29 April 2003 at 5:23pm

Ok, so is there any tag that can be used like say <!--#include file ?

Another computer that I'm using doesn't have the above problem for me.



Posted By: michael
Date Posted: 30 April 2003 at 9:03am
It all depends how your web is set up. you can use <!--#include file="../folder/file.asp"--> which then starts from the location you are calling it...

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker



Print Page | Close Window

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