|
-
Feb 1st, 2001, 07:54 AM
#1
Thread Starter
Hyperactive Member
Dear all,
I have an include in my asp page as shown below.
<!-- #INCLUDE FILE="../Includes/Test.asp" -->
When I run the asp I get an error message
The Include file '../Includes/Test.asp' cannot contain '..' to indicate the parent directory.
Is it necessary that the include files be in the same directory as the asp page in which they are included?
-
Feb 1st, 2001, 08:47 AM
#2
Lively Member
Try using the virtual parameter for the include.
<!-- #INCLUDE VIRTUAL="/Includes/Test.asp" -->
-
Feb 1st, 2001, 10:33 AM
#3
Black Cat
I believe the ability to use "../" notation would present a security risk, as it could possibly allow access to "secure" OS files, etc.
Josh
-
Feb 1st, 2001, 11:44 PM
#4
Guru
You have to enable "Allow Parent Paths" in the Web App configuration thru the IIS manager
-
Feb 2nd, 2001, 09:30 AM
#5
Thread Starter
Hyperactive Member
Dear Clunietp,
Where do i set this setting in the web server. I mean where is IIS manager is it same as Administration site.
-
Feb 2nd, 2001, 10:58 AM
#6
Guru
Go to the properties of your root app
Click on the home directory tab, click the configuration button
click on the app options tab, check "Enable Parent Paths"
This is what I have in Windows 2000, should be similar for IIS 4
-
Feb 3rd, 2001, 07:12 AM
#7
Thread Starter
Hyperactive Member
Dear Clunietp,
"Enable Parent Paths" is enabled on my web server yet I am getting the error. Any other suggestions.
-
Feb 4th, 2001, 11:38 PM
#8
Guru
Hmmm...that's all I can find on this one -- make sure you enable parent paths for the application, and if that doesn't work, try to enable them for the web site and finally the master web properties....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|