Follow this guide step by step with ChatGPT, Claude or another AI

Updated: 30 November 2026 · Applies to: Plesk Obsidian 18.0 for Windows with IIS 10 and the ASP role service (classic ASP sites)

To enable parent paths for a classic ASP site in Plesk for Windows, go to Websites & Domains > your domain > Virtual Directories, click Directory Properties for the site root (or the folder that holds the scripts), tick Allow to use parent paths and click OK. This lets ASP pages use .. in include and Server.MapPath paths. Before you switch it on, check whether a virtual path would fix the script instead, because that is the safer choice.

The errors this fixes

According to Microsoft, IIS has blocked parent paths by default since IIS 6.0, and the IIS setting enableParentPaths still defaults to false. When ASP error messages are shown in the browser, an include such as <!--#include file="../inc/header.asp"--> fails with:

Active Server Pages error 'ASP 0131'
Disallowed Parent Path
/test/example.asp, line 100
The Include file '../_fpclass/fpdblib.inc' cannot contain '..' to indicate the parent directory.

and a call like Server.MapPath("../example.asp") fails with:

Server.MapPath() error 'ASP 0175 : 80004005'
Disallowed Path Characters

If browser error messages are off (the IIS default), visitors only see "An error occurred on the server when processing the URL". Both examples are quoted from Microsoft's documentation.

Option 1: use virtual paths (no setting change)

A virtual path starts from the root of the website, so it never needs ... Microsoft recommends this as the alternative. Change an include such as:

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

to:

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

and a mapped path such as Server.MapPath("../data/list.txt") to Server.MapPath("/data/list.txt"), using the full folder path from the site root. If you can edit the code, this keeps the default protection in place.

Option 2: allow parent paths in Plesk

  1. Log in to Plesk (see How to Log In to Your Plesk Panel).
  2. Go to Websites & Domains and find your domain.
  3. Click Virtual Directories.
  4. To change the whole site, click Directory Properties at the top level. To change one folder only, open that folder and click its Directory Properties.
  5. Tick Allow to use parent paths.
  6. Click OK. The change applies at once; there is no service to restart.

According to Plesk, if you allow parent paths you should not give the parent folders Execute permissions, so that programs cannot be run there without authorisation. On the same screen, keep Execute permissions at Scripts only for ASP folders rather than Scripts and Executables.

Why a web.config change may not work

Many guides suggest adding <asp enableParentPaths="true" /> to the site's web.config. According to Microsoft, the <asp> section can be set in the server's ApplicationHost.config, but by default it cannot be set at site or application level, so on a standard IIS setup that line is not accepted from the site's own file and does not enable the option. Use the Plesk setting, or ask the server administrator.

For server administrators

According to Plesk, the same option is available from the command line with virtdir.exe, where -parent_paths needs the directory to be an IIS application and Plesk recommends setting -execute_perm to none with it:

plesk bin virtdir.exe --update /vd1 -vhost example.com -execute_perm none -parent_paths true

Replace /vd1 with the virtual directory name and example.com with the domain. Outside Plesk, Microsoft documents the IIS command (run as administrator, with /commit:apphost):

appcmd.exe set config "Default Web Site" -section:system.webServer/asp /enableParentPaths:"True" /commit:apphost

On a Plesk server, prefer the Plesk setting, so the panel and IIS stay in step. The ASP role service must be installed in IIS for any of this to work (Server Manager > Add Roles and Features > Web Server (IIS) > Application Development > ASP, according to Microsoft).

Is it safe?

Parent paths let a script reach files above its own folder. Microsoft turned them off to stop content being included across security or application boundaries. Allow them only for code you trust, only on the folder that needs them, and plan to move the includes to virtual paths. For ASP.NET sites, the related setting is the framework version, covered in How to Change the .NET Framework Version with Plesk Control Panel.

Official documentation: Microsoft: Classic ASP parent paths are disabled by default, Microsoft: ASP configuration reference and Plesk: Changing virtual directory settings.

Related services

Plesk server management

installation, migrations and monthly plans with no lock-in.

cPanel, Plesk and LiteSpeed licences

for VPS and dedicated servers, with installation help on demand.

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Was this answer helpful?

Still stuck? Open a ticket