473,386 Members | 2,042 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ASP problem with includes

When I use an include file like this
<!--#include file="..\..\cfig.asp"-->
<!--#include file="..\..\clsOOPModule.asp"-->
my server gives an error of :
Active Server Pages error 'ASP 0131'

Disallowed Parent Path

/test/module/VieBoard/main.asp, line 1

The Include file '..\..\cfig.asp' cannot contain '..' to
indicate the parent directory.

Jul 19 '05 #1
6 2979
It's a setting of the website to allow / disallow parent paths.

Open the website properties in IIS MMC console and change it (if you need this). It's a security
thing to prevent crafted URLs that try and navigate outside of the website,

Chris.

"ceyhun" <ce****@likya.net> wrote in message news:1f*****************************@phx.gbl...
When I use an include file like this
<!--#include file="..\..\cfig.asp"-->
<!--#include file="..\..\clsOOPModule.asp"-->
my server gives an error of :
Active Server Pages error 'ASP 0131'

Disallowed Parent Path

/test/module/VieBoard/main.asp, line 1

The Include file '..\..\cfig.asp' cannot contain '..' to
indicate the parent directory.
Jul 19 '05 #2
http://www.aspfaq.com/2412

--
http://www.aspfaq.com/
(Reverse address to reply.)

"ceyhun" <ce****@likya.net> wrote in message
news:1f*****************************@phx.gbl...
When I use an include file like this
<!--#include file="..\..\cfig.asp"-->
<!--#include file="..\..\clsOOPModule.asp"-->
my server gives an error of :
Active Server Pages error 'ASP 0131'

Disallowed Parent Path

/test/module/VieBoard/main.asp, line 1

The Include file '..\..\cfig.asp' cannot contain '..' to
indicate the parent directory.

Jul 19 '05 #3
use relative path instead:

<!--#include virtual=/path/to/files -->
"ceyhun" <ce****@likya.net> ¦b¶l¥ó
news:1f*****************************@phx.gbl ¤¤¼¶¼g...
When I use an include file like this
<!--#include file="..\..\cfig.asp"-->
<!--#include file="..\..\clsOOPModule.asp"-->
my server gives an error of :
Active Server Pages error 'ASP 0131'

Disallowed Parent Path

/test/module/VieBoard/main.asp, line 1

The Include file '..\..\cfig.asp' cannot contain '..' to
indicate the parent directory.

Jul 19 '05 #4
I opened MMC but there's nothing there. I use IIS6.0
-----Original Message-----
It's a setting of the website to allow / disallow parent paths.
Open the website properties in IIS MMC console and change it (if you need this). It's a securitything to prevent crafted URLs that try and navigate outside of the website,
Chris.

"ceyhun" <ce****@likya.net> wrote in message news:1f*****************************@phx.gbl...When I use an include file like this
<!--#include file="..\..\cfig.asp"-->
<!--#include file="..\..\clsOOPModule.asp"-->
my server gives an error of :
Active Server Pages error 'ASP 0131'

Disallowed Parent Path

/test/module/VieBoard/main.asp, line 1

The Include file '..\..\cfig.asp' cannot contain '..' to
indicate the parent directory.
.

Jul 19 '05 #5
On Mon, 21 Jun 2004 00:26:13 -0700, "Ceyhun" <ce****@likya.net> wrote:
I opened MMC but there's nothing there. I use IIS6.0


Nothing? Then you have a bigger problem than parent paths.

If you just don't understand where to look, see:

Enable Parent Paths Is Disabled by Default in IIS 6.0:
http://support.microsoft.com/default...b;EN-US;332117

Jeff
-----Original Message-----
It's a setting of the website to allow / disallow parent

paths.

Open the website properties in IIS MMC console and change

it (if you need this). It's a security
thing to prevent crafted URLs that try and navigate

outside of the website,

Chris.

"ceyhun" <ce****@likya.net> wrote in message

news:1f*****************************@phx.gbl...
When I use an include file like this
<!--#include file="..\..\cfig.asp"-->
<!--#include file="..\..\clsOOPModule.asp"-->
my server gives an error of :
Active Server Pages error 'ASP 0131'

Disallowed Parent Path

/test/module/VieBoard/main.asp, line 1

The Include file '..\..\cfig.asp' cannot contain '..' to
indicate the parent directory.
.


Jul 19 '05 #6
I mean relative to the root (that is, absolute path :p )
"3legs" <3l***@askme.com> ¦b¶l¥ó news:u0**************@TK2MSFTNGP12.phx.gbl
¤¤¼¶¼g...
use relative path instead:

<!--#include virtual=/path/to/files -->
"ceyhun" <ce****@likya.net> ¦b¶l¥ó
news:1f*****************************@phx.gbl ¤¤¼¶¼g...
When I use an include file like this
<!--#include file="..\..\cfig.asp"-->
<!--#include file="..\..\clsOOPModule.asp"-->
my server gives an error of :
Active Server Pages error 'ASP 0131'

Disallowed Parent Path

/test/module/VieBoard/main.asp, line 1

The Include file '..\..\cfig.asp' cannot contain '..' to
indicate the parent directory.


Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Hafeez | last post by:
I am having real trouble compiling this code http://www.cs.wisc.edu/~vganti/birchcode/codeHier/AttrProj.tgz The attachment shows errors when compiled using the current version of g++ in a...
2
by: David Muoio | last post by:
I am trying to validate an XML file against an XSD that is stored in the assembly as an embedded resource. I can get it to work as long as the XSD does not include other XSDs. After a fair amount...
6
by: tshad | last post by:
I have an ascx file I am using to include my logos and heading information for all my pages. It was working fine up until now. I decided to set up an admin folder inside of my main folder and...
2
by: bobmct | last post by:
I'm attempting to integrate some PayPalPro supplied modules which come with their own directory structure. I've installed this "directory" into my common "working" includes directory. However,...
6
by: kwest | last post by:
I just setup a new server with PHP 5 and ran into a problem with includes. Everytime I call something like require_once './includes/test.inc' I get a permissions message like this: Warning:...
7
by: Ajinkya | last post by:
I have writen a program for a game called game.exe Now it includes a player part to which has to be a function to be writen by someone else. Now I want to provide this exe to some tester who...
10
by: SoulIntruder | last post by:
Hello folks. I have a beginners question. I have such script: <?php $User = $_POST; $Password = $_POST; $Database = $_POST;
1
by: JRough | last post by:
I have includes at the top of the file and I have inline includes also includes in mysql queries. For example: include './includes/config.inc.php'; include $include_path.'dates.inc.php';...
8
by: shaielinna | last post by:
<? ob_start(); session_start(); require('../includes/inc.php'); require('../includes/settings.php'); include("../includes/dbconnect.php");?> <?php // requires the class require...
1
by: Gramma2005 | last post by:
I am trying to connect to an access db through php on Windows Server 2003 running XAMPP. The code I am using has worked before on another access db on this server so I am not sure what is causing...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.