ERROR: cannot contain ‘..’ to indicate the parent directory

Written by Mike on March 13, 2009 – 8:49 am -

While developing a website there are many code snippets which are used on various pages. In such cases the website developers save such code snippets in a particular file and call the in pages using <!–#include file=”filename.asp”–> (in ASP). This helps to reduce the length of code.script of a webpage and eliminates the scripting Errors. In IIS sometime when you try to access some pages which have such includes it shows following Error:

Active Server Pages error 'ASP 0131'

Disallowed Parent Path

/test/main.asp, line 1

The Include file '../common.asp' cannot contain '..' to indicate the parent directory.

Here the line 1 of main.asp contains following code snippets.

<!--#include file="../common.asp"-->

You receive this error message if the application calls an ASP method that requires the Parent Paths option to be enabled. By default, the Parent Paths option is enabled in IIS 5.0, but it is disabled by default in IIS 6.0.

This problem can be resolved by enabling Parent Paths for the website.

1)  Click Start, click Administrative Tools, and then click Internet Information Services (IIS) Manager.

2)  Double-click your computer name in the left pane, and then double-click Web Sites.

3) Locate the Web site and directory that houses the ASP application and Right-click the application site or directory, and then click Properties

site_properties ERROR: cannot contain .. to indicate the parent directory
4) Select Home Directory, and then click Configuration.

home_dir ERROR: cannot contain .. to indicate the parent directory

5) Click Options, and then click to select the Enable Parent Paths check box

enable ERROR: cannot contain .. to indicate the parent directory

6) Press “OK” and restart IIS.

iisreset ERROR: cannot contain .. to indicate the parent directory

Now try to access the Same Page or URL again.


Tags: , ,
Posted in Dedicated Server Hosting | 2 Comments »

2 Comments to “ERROR: cannot contain ‘..’ to indicate the parent directory”

  1. best website directory Says:

    i have been getting this error for a while. thanks for the information.

  2. 1amigo Says:

    many thank
    Muchas gracias

Leave a Comment

RSS

  • Subscribe Me

  • Tag Cloud

  • Archives