Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP file include path
I am using Asp classic page.
 
I usually include files from local directory, so far no problem in that one.
 
Like i use this syntax to include a file in my asp classic page
<!--#include file="rssmenu.inc"-->  
But when i try to include file from parent directory i can't.
 
The syntax i used to refer parent directory file is
 
<!--#include file="../includes/rssmenu.inc"-->
 
I'm using Windows xp machine.
 
So please help me.
It will be more helpful if it is explained with small example.
 
Thanks in advance
 
With regards
R.K.PRABAKAR
Posted 17-Jun-12 20:48pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Finally i configured and overcome the error successfully.
http://learn.iis.net/page.aspx/566/classic-asp-parent-paths-are-disabled-by-default/[^]
 
In windows xp machine
 
1) Goto IIS Manager(Run--> Type inetmgr)
 
2) Navigate to "Default Web site"--> Right click and select "Properties"
 
3) Select "Home Directory" tab and there press "Configuration" button
 
4) Then select "Option" tab
 
5) Check "Enable parent directory" option (If it is unchecked)
 
This clears the issue for me.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Mika Wendelius 161
1 Abhinav S 115
2 Kornfeld Eliyahu Peter 100
3 Suvendu Shekhar Giri 100
4 Peter Leow 100
0 Sergey Alexandrovich Kryukov 8,513
1 OriginalGriff 6,526
2 Peter Leow 3,657
3 Zoltán Zörgő 3,426
4 Richard MacCutchan 2,417


Advertise | Privacy | Mobile
Web01 | 2.8.150123.1 | Last Updated 18 Jun 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100