Knowledgebase
Knowledgebase: Server Side
How can I correct the error using Parent Paths?
Posted by Sinan Esen on 01 May 2015 03:21 PM

Enable Parent Paths is disabled by default since IIS 6.0

 

A parent path refers to accessing directories below your current working directory in a manner such as INCLUDE File = ../somefile.asp

 

You may receive one of the following error messages in your browser:

 

  • If the Show Friendly Http Error Messages is not selected in your web browser:


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

 

-or-

 
ASP error 0131 The include file <%filename.ext%> cannot contain '..'
to indicate the parent directory. /<%path%>/<%filename.ext%>, line <%number%>

 

  • If the Show Friendly Http Error Messages is selected:


HTTP 500-Internal server error

 

To resolve this issue, please follow these instructions:

 

1. Log in to your Openhost Control Panel

2. Choose your Windows hosting plan from the Subscription drop-down box

 

3. For the domain in question, click on the Virtual Directories button

 

4. Click then on the Directory Properties button

 

5. In the Applications Settings section, check the Allow to use parent paths option then click OK to save

 

 

 

 

 

(0 vote(s))
Helpful
Not helpful